Skip to content

Commit

Permalink
[NO-ISSUE] Fix quay.io expiration for the commit tag
Browse files Browse the repository at this point in the history
  • Loading branch information
brusdev committed Sep 26, 2023
1 parent efc4a1c commit 0b72ef9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ jobs:
- name: Push the dev image
if: ${{ github.event_name == 'push' }}
run: |
IMAGE_TAG=dev.$(date +%Y%m%d).$(git rev-parse --short "$GITHUB_SHA")
COMMIT_TAG=dev.$(date +%Y%m%d).$(git rev-parse --short "$GITHUB_SHA")
podman login --username=${{ secrets.QUAY_USERNAME }} --password=${{ secrets.QUAY_PASSWORD }} quay.io
podman manifest push $IMAGE_NAME:dev.latest docker://quay.io/${{ secrets.QUAY_NAMESPACE }}/$IMAGE_NAME:$COMMIT_TAG
podman manifest push $IMAGE_NAME:dev.latest docker://quay.io/${{ secrets.QUAY_NAMESPACE }}/$IMAGE_NAME:dev.latest
podman manifest push $IMAGE_NAME:dev.latest docker://quay.io/${{ secrets.QUAY_NAMESPACE }}/$IMAGE_NAME:$IMAGE_TAG
- name: Push the snapshot image
if: ${{ github.event_name == 'schedule' || inputs.snapshot }}
Expand Down

0 comments on commit 0b72ef9

Please sign in to comment.