Skip to content

Commit 8ecdb54

Browse files
committed
add both arch in docker image
1 parent b812922 commit 8ecdb54

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)