Skip to content

Commit 532baf1

Browse files
authored
Merge pull request #243 from cmu-delphi/sgratzl/image_only
feat: publish images only in main/dev/release branch
2 parents aba8113 + 8d2b189 commit 532baf1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci_fast.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,15 @@ jobs:
3737
path: ./public
3838

3939
- name: Login to GitHub Container Registry
40+
if: (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/release') && github.event_name == 'push'
4041
uses: docker/login-action@v1
4142
with:
4243
registry: ghcr.io
4344
username: cmu-delphi-deploy-machine
4445
password: ${{ secrets.CMU_DELPHI_DEPLOY_MACHINE_PAT }}
4546

4647
- name: Build, tag, and push image to Github
48+
if: (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/release') && github.event_name == 'push'
4749
env:
4850
DEVOPS_DOCKER_FILE: ./devops/precompiled.dockerfile
4951
run: |

0 commit comments

Comments
 (0)