Skip to content

Commit

Permalink
updates CI
Browse files Browse the repository at this point in the history
  • Loading branch information
saxix committed Jun 20, 2024
1 parent 7363fd9 commit bee4c3c
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/delete_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ jobs:
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
- name: Define linked test image name
id: image_name
run: |
echo "name=${{vars.DOCKER_IMAGE}}:test-${{steps.meta.outputs.version}}" >> $GITHUB_OUTPUT
- name: Clean up

- name: Delete Test Docker Image
shell: bash
run: |
echo "name=${{vars.DOCKER_IMAGE}}:test-${{steps.meta.outputs.version}}" >> $GITHUB_OUTPUT
registry="https://registry-1.docker.io"
name=${{steps.image_name.outputs.name}}
curl -v -sSL -X DELETE "http://${registry}/v2/${name}/manifests/$(
Expand All @@ -26,13 +25,10 @@ jobs:
| awk '$1 == "Docker-Content-Digest:" { print $2 }' \
| tr -d $'\r' \
)"
- name: Define linked image name
id: image_name
run: |
echo "name=${{vars.DOCKER_IMAGE}}:${{steps.meta.outputs.version}}" >> $GITHUB_OUTPUT
- name: Clean up
- name: Delete linked Docker Image
shell: bash
run: |
echo "name=${{vars.DOCKER_IMAGE}}:${{steps.meta.outputs.version}}" >> $GITHUB_OUTPUT
registry="https://registry-1.docker.io"
name=${{steps.image_name.outputs.name}}
curl -v -sSL -X DELETE "http://${registry}/v2/${name}/manifests/$(
Expand Down

0 comments on commit bee4c3c

Please sign in to comment.