File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ jobs:
162
162
username : ${{ secrets.CR_PAT_PKG_USER }}
163
163
password : ${{ secrets.CR_PAT_PKG }}
164
164
- name : Build and Push to GitHub Packages
165
+ if : github.event_name == 'release'
165
166
run : |
166
167
docker build ${CONTEXT_PATH} -f ${DOCKERFILE_PATH} \
167
168
-t docker.pkg.github.com/${GH_REPO}/${IMAGE_NAME}:${VERSION_FULL}
Original file line number Diff line number Diff line change @@ -169,6 +169,7 @@ jobs:
169
169
username : ${{ secrets.CR_PAT_PKG_USER }}
170
170
password : ${{ secrets.CR_PAT_PKG }}
171
171
- name : Build and Push to GitHub Packages
172
+ if : github.event_name == 'release'
172
173
run : |
173
174
docker build ${CONTEXT_PATH} -f ${DOCKERFILE_PATH} \
174
175
-t docker.pkg.github.com/${GH_REPO}/${IMAGE_NAME}:${VERSION_FULL}
You can’t perform that action at this time.
0 commit comments