File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,14 +88,16 @@ jobs:
8888 id : version
8989 run : echo "tag=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
9090
91-
92-
93- - name : Run hub-tool commands
91+ - name : Run curl command's to delete monoarch image
92+ env :
93+ DOCKER_TOKEN : ${{ secrets.DOCKER_TOKEN }}
94+ DOCKER_IMAGE : ${{ secrets.DOCKER_IMAGE }}
95+ DOCKER_TAG : ${{ steps.version.outputs.tag }}
9496 run : |
95- curl -X DELETE -H "Authorization: JWT ${{ secrets.DOCKER_TOKEN }}" " https://hub.docker.com/v2/repositories/${{ secrets. DOCKER_IMAGE }} /tags/${{ steps.version.outputs.tag }} -amd64/"
96- curl -X DELETE -H "Authorization: JWT ${{ secrets.DOCKER_TOKEN }}" " https://hub.docker.com/v2/repositories/${{ secrets. DOCKER_IMAGE }} /tags/${{ steps.version.outputs.tag }} -arm64/"
97- curl -X DELETE -H "Authorization: JWT ${{ secrets.DOCKER_TOKEN }}" " https://hub.docker.com/v2/repositories/${{ secrets. DOCKER_IMAGE }} /tags/latest -amd64/"
98- curl -X DELETE -H "Authorization: JWT ${{ secrets.DOCKER_TOKEN }}" " https://hub.docker.com/v2/repositories/${{ secrets. DOCKER_IMAGE }} /tags/latest -arm64/"
97+ curl --request DELETE --url https://hub.docker.com/v2/repositories/${DOCKER_IMAGE} /tags/latest -amd64/ --header 'authorization: JWT ${DOCKER_TOKEN}'
98+ curl --request DELETE --url https://hub.docker.com/v2/repositories/${DOCKER_IMAGE} /tags/latest -arm64/ --header 'authorization: JWT ${DOCKER_TOKEN}'
99+ curl --request DELETE --url https://hub.docker.com/v2/repositories/${DOCKER_IMAGE} /tags/${DOCKER_TAG} -amd64/ --header 'authorization: JWT ${DOCKER_TOKEN}'
100+ curl --request DELETE --url https://hub.docker.com/v2/repositories/${DOCKER_IMAGE} /tags/${DOCKER_TAG} -arm64/ --header 'authorization: JWT ${DOCKER_TOKEN}'
99101
100102 deploy :
101103 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments