Skip to content

Commit

Permalink
Don't tag images starting with test- as latest
Browse files Browse the repository at this point in the history
  • Loading branch information
stchris committed Dec 7, 2023
1 parent 0ff43e4 commit 65c2838
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,9 @@ jobs:
export ALEPH_TAG=${GITHUB_REF/refs\/tags\//}
docker tag ghcr.io/alephdata/aleph-ui-production:${GITHUB_SHA} ghcr.io/alephdata/aleph-ui-production:${ALEPH_TAG};
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-')
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;
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,9 @@ jobs:
export ALEPH_TAG=${GITHUB_REF/refs\/tags\//}
docker tag ghcr.io/alephdata/aleph:${GITHUB_SHA} ghcr.io/alephdata/aleph:${ALEPH_TAG};
docker push ghcr.io/alephdata/aleph:${ALEPH_TAG};
- name: Tag latest image
if: github.event_name == 'push' && !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 65c2838

Please sign in to comment.