From 79be74ca331bd947c1d11f511a9549cdaa9c2182 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Flemstro=CC=88m?= Date: Sat, 7 Sep 2024 10:24:05 +0200 Subject: [PATCH] ci, publish needs to pull image before retagging --- .github/workflows/publish.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9585ba8..ec4f552 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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