From a5ae0c9abf70da8ce3772d3f6ba31bc3574b5d8a Mon Sep 17 00:00:00 2001 From: Kornel David Date: Tue, 27 Aug 2024 17:03:12 +0200 Subject: [PATCH] Chore(CI/CD): Fix delete docker image tag step --- .github/workflows/pr-image-builder.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-image-builder.yaml b/.github/workflows/pr-image-builder.yaml index 846f97e..6aa18ce 100644 --- a/.github/workflows/pr-image-builder.yaml +++ b/.github/workflows/pr-image-builder.yaml @@ -67,10 +67,9 @@ jobs: echo "token=$TOKEN" >> $GITHUB_ENV - name: Delete Docker Image Tag env: - DOCKER_USER: ${{ secrets.DOCKER_USER }} - DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }} + TOKEN: ${{ env.token }} run: | PR_NUMBER=${{ github.event.pull_request.number }} - curl -s -u "$DOCKER_USER:$DOCKER_TOKEN" \ + curl -s -H "Authorization: Bearer $TOKEN" \ -X DELETE "https://hub.docker.com/v2/repositories/l7mp/stunner/tags/pr-$PR_NUMBER/" \ -w "HTTP Response Code: %{http_code}\n" \ No newline at end of file