File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,15 +37,15 @@ jobs:
3737 path : ./public
3838
3939 - name : Login to GitHub Container Registry
40- if : (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/release') && github.event_name == 'push'
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'
4141 uses : docker/login-action@v1
4242 with :
4343 registry : ghcr.io
4444 username : cmu-delphi-deploy-machine
4545 password : ${{ secrets.CMU_DELPHI_DEPLOY_MACHINE_PAT }}
4646
4747 - name : Build, tag, and push image to Github
48- if : (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/release') && github.event_name == 'push'
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'
4949 env :
5050 DEVOPS_DOCKER_FILE : ./devops/precompiled.dockerfile
5151 run : |
You can’t perform that action at this time.
0 commit comments