Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
test remove image
Browse files Browse the repository at this point in the history
  • Loading branch information
oksana-grishchenko committed Nov 2, 2023
1 parent ac7ded5 commit 97c6b2b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ jobs:
steps:
- name: Delete Image
run: |
name=${{ secrets.DOCKERHUB_USERNAME }}
token=${{ secrets.DOCKERHUB_TOKEN }}
curl -s -X DELETE -H "Authorization: JWT ${{ secrets.DOCKERHUB_TOKEN }}" https://hub.docker.com/v2/repositories/perconalab/everest/tags/v555.555.555/
TOKEN=$(curl -s -H "Content-Type: application/json" -X POST -d '{"username": "'${secrets.DOCKERHUB_USERNAME}'", "password": "'${secrets.DOCKERHUB_TOKEN}'"}' https://hub.docker.com/v2/users/login/ | jq -r .token)
curl -s -X DELETE -H "Authorization: JWT ${{ TOKEN }}" https://hub.docker.com/v2/repositories/perconalab/everest/tags/v555.555.555/

0 comments on commit 97c6b2b

Please sign in to comment.