Skip to content

Commit

Permalink
Chore(CI/CD): Fix delete docker image tag step
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkornel committed Aug 27, 2024
1 parent 305cb08 commit a5ae0c9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/pr-image-builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit a5ae0c9

Please sign in to comment.