Skip to content

Commit

Permalink
Update docker-publish.yml
Browse files Browse the repository at this point in the history
Signed-off-by: ilan <[email protected]>
  • Loading branch information
iloveicedgreentea authored Feb 6, 2024
1 parent 5e3987e commit db2ee87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
if: ${{ github.event_name == 'pull_request' && github.head_ref == 'develop' }}
if: ${{ github.ref == 'refs/heads/master' || github.event_name == 'pull_request' && github.head_ref == 'develop' }}
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
Expand All @@ -64,7 +64,7 @@ jobs:
with:
context: .
# platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7
push: ${{ github.head_ref == 'master' || github.event_name == 'pull_request' && github.head_ref == 'develop' }}
push: ${{ github.ref == 'refs/heads/master' || github.event_name == 'pull_request' && github.head_ref == 'develop' }}
tags: ${{ steps.meta.outputs.tags }}
# cache-from: type=gha
# cache-to: type=gha,mode=max
Expand Down

0 comments on commit db2ee87

Please sign in to comment.