From b5c1e9424b935150c50516045317f57c85115a61 Mon Sep 17 00:00:00 2001 From: Martin Buchleitner Date: Wed, 10 Jan 2024 09:09:26 +0100 Subject: [PATCH] fix rules on workflows... Signed-off-by: Martin Buchleitner --- .github/workflows/containers.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/containers.yaml b/.github/workflows/containers.yaml index 59e7470..7edf2bc 100644 --- a/.github/workflows/containers.yaml +++ b/.github/workflows/containers.yaml @@ -66,7 +66,7 @@ jobs: ${{ runner.os }}-buildx- - name: Login to Quay - if: needs.prebuild.outputs.version != '' + if: ${{ github.ref_name == github.event.repository.default_branch }} uses: docker/login-action@v3 with: registry: quay.io @@ -74,7 +74,7 @@ jobs: password: ${{ secrets.QUAY_TOKEN }} - name: Login to GitHub Container Registry - if: needs.prebuild.outputs.version != '' + if: ${{ github.ref_name == github.event.repository.default_branch }} uses: docker/login-action@v3 with: registry: ghcr.io @@ -87,6 +87,6 @@ jobs: with: builder: ${{ steps.buildx.outputs.name }} context: ./dapr-distributed-calendar/${{ matrix.container }}/ - push: ${{ github.event_name != 'pull_request' && needs.prebuild.outputs.version != '' }} + push: ${{ github.ref_name == github.event.repository.default_branch }} tags: ${{ steps.prep.outputs.tags }} platforms: ${{ env.platforms }}