Skip to content

Commit ca69aa0

Browse files
author
Vicente Herrera
committed
fix: Added conditial on release to push to GH packages
1 parent dbcab0c commit ca69aa0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/build-forwarder.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ jobs:
162162
username: ${{ secrets.CR_PAT_PKG_USER }}
163163
password: ${{ secrets.CR_PAT_PKG }}
164164
- name: Build and Push to GitHub Packages
165+
if: github.event_name == 'release'
165166
run: |
166167
docker build ${CONTEXT_PATH} -f ${DOCKERFILE_PATH} \
167168
-t docker.pkg.github.com/${GH_REPO}/${IMAGE_NAME}:${VERSION_FULL}

.github/workflows/build-installer.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ jobs:
169169
username: ${{ secrets.CR_PAT_PKG_USER }}
170170
password: ${{ secrets.CR_PAT_PKG }}
171171
- name: Build and Push to GitHub Packages
172+
if: github.event_name == 'release'
172173
run: |
173174
docker build ${CONTEXT_PATH} -f ${DOCKERFILE_PATH} \
174175
-t docker.pkg.github.com/${GH_REPO}/${IMAGE_NAME}:${VERSION_FULL}

0 commit comments

Comments
 (0)