There was an error while loading. Please reload this page.
1 parent 9a356df commit 36b70f4Copy full SHA for 36b70f4
1 file changed
.github/workflows/build.yml
@@ -73,7 +73,7 @@ jobs:
73
path: TestResults/Merged/SummaryGithub.md
74
75
- name: Log in to GHCR
76
-# if: ${{ github.event_name == 'push' }}
+ if: ${{ github.event_name == 'push' }}
77
uses: docker/login-action@v4
78
with:
79
registry: ghcr.io
@@ -102,7 +102,7 @@ jobs:
102
context: .
103
file: src/SchoolAccount.Web.Mvc/Dockerfile
104
target: final
105
- push: true
+ push: ${{ github.ref == env.MAIN_BRANCH }}
106
tags: ${{ steps.meta.outputs.tags }}
107
108
- name: Publish
0 commit comments