From 82aa2da4f6211f1bd296d69ca1e900082b5414f6 Mon Sep 17 00:00:00 2001 From: Jay Mundrawala Date: Tue, 7 Oct 2025 06:45:58 -0500 Subject: [PATCH] Publish docker container for pushes to main Publishes docker containers when there is a push to main. This allows easily testing out new builds before there is a release. See https://github.com/alexandrevilain/temporal-operator/issues/968 --- .github/workflows/release.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8821841b..826c93de 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,16 +1,15 @@ name: Publish release artifacts on: - release: - types: - - created + push: + branches: [main] + tags: ["v*"] env: REGISTRY: ghcr.io jobs: release: - if: startsWith(github.ref, 'refs/tags/v') == true runs-on: ubuntu-latest steps: - name: Checkout @@ -42,6 +41,7 @@ jobs: images: | ${{ env.REGISTRY }}/alexandrevilain/temporal-operator tags: | + type=ref,event=branch type=ref,event=tag - name: Build and push operator docker image uses: docker/build-push-action@v5 @@ -58,6 +58,7 @@ jobs: images: | ${{ env.REGISTRY }}/alexandrevilain/temporal-operator-bundle tags: | + type=ref,event=branch type=ref,event=tag - name: Build and push bundle docker image uses: docker/build-push-action@v5 @@ -68,8 +69,8 @@ jobs: tags: ${{ steps.metabundle.outputs.tags }} labels: ${{ steps.metabundle.outputs.labels }} - name: Release + if: github.ref_type == 'tag' uses: softprops/action-gh-release@v2 with: files: | out/release/artifacts/*.yaml - \ No newline at end of file