Skip to content

Commit

Permalink
Pull base image tag 'latest' before retagging
Browse files Browse the repository at this point in the history
  • Loading branch information
katybaulch committed Mar 6, 2024
1 parent f7a3248 commit 1f4562d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/semver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
docker pull ${DOCKER_REGISTRY}/${{ inputs.repo-name }}:latest
docker tag ${DOCKER_REGISTRY}/${{ inputs.repo-name }}:latest ${{ inputs.repo-name }}:${{ inputs.semver-tag }}
.github/retag-and-push.sh ${{ inputs.repo-name }} ${{ inputs.semver-tag }}
Expand All @@ -76,5 +77,6 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
docker pull ${DOCKER_REGISTRY}/${{ inputs.repo-name }}:latest
docker tag ${DOCKER_REGISTRY}/${{ inputs.repo-name }}:latest ${{ inputs.repo-name }}:${{ inputs.semver-tag }}
.github/retag-and-push.sh ${{ inputs.repo-name }} ${{ inputs.semver-tag }}

0 comments on commit 1f4562d

Please sign in to comment.