Skip to content

Commit

Permalink
ci, publish needs to pull image before retagging
Browse files Browse the repository at this point in the history
  • Loading branch information
danielFlemstrom committed Sep 7, 2024
1 parent 241e2dc commit 79be74c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
run: |
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login harbor.main.rise-ck8s.com -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: Pull image before tagging as latest
run: docker pull harbor.main.rise-ck8s.com/des-public/tutorials:${{ github.sha }}

- name: Tag Docker image as "latest" and push
run: |
docker tag harbor.main.rise-ck8s.com/des-public/tutorials:${{ github.sha }} harbor.main.rise-ck8s.com/des-public/tutorials:latest
Expand Down

0 comments on commit 79be74c

Please sign in to comment.