Skip to content

Commit db2ee87

Browse files
Update docker-publish.yml
Signed-off-by: ilan <[email protected]>
1 parent 5e3987e commit db2ee87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/docker-publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
# Login against a Docker registry except on PR
4242
# https://github.com/docker/login-action
4343
- name: Log into registry ${{ env.REGISTRY }}
44-
if: ${{ github.event_name == 'pull_request' && github.head_ref == 'develop' }}
44+
if: ${{ github.ref == 'refs/heads/master' || github.event_name == 'pull_request' && github.head_ref == 'develop' }}
4545
uses: docker/[email protected]
4646
with:
4747
registry: ${{ env.REGISTRY }}
@@ -64,7 +64,7 @@ jobs:
6464
with:
6565
context: .
6666
# platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7
67-
push: ${{ github.head_ref == 'master' || github.event_name == 'pull_request' && github.head_ref == 'develop' }}
67+
push: ${{ github.ref == 'refs/heads/master' || github.event_name == 'pull_request' && github.head_ref == 'develop' }}
6868
tags: ${{ steps.meta.outputs.tags }}
6969
# cache-from: type=gha
7070
# cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)