Skip to content

Commit

Permalink
Only push latest if this is a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
stchris committed Dec 7, 2023
1 parent 65c2838 commit f7315ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
docker push ghcr.io/alephdata/aleph-ui-production:${ALEPH_TAG};
- name: Tag latest image
if: github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/test-')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && !startsWith(github.ref, 'refs/tags/test-')
run: |
docker tag ghcr.io/alephdata/aleph-ui-production:${GITHUB_SHA} ghcr.io/alephdata/aleph-ui-production:latest;
docker push ghcr.io/alephdata/aleph-ui-production:latest;
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
docker push ghcr.io/alephdata/aleph:${ALEPH_TAG};
- name: Tag latest image
if: github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/test-')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && !startsWith(github.ref, 'refs/tags/test-')
run: |
docker tag ghcr.io/alephdata/aleph:${GITHUB_SHA} ghcr.io/alephdata/aleph:latest;
docker push ghcr.io/alephdata/aleph:latest;

0 comments on commit f7315ab

Please sign in to comment.