Skip to content

Commit 8d2b189

Browse files
committed
feat: or being a tags
1 parent 6d68438 commit 8d2b189

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci_fast.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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: |

0 commit comments

Comments
 (0)