From bee4c3c5178026f3cd4b4d482dd05cb09b8ba517 Mon Sep 17 00:00:00 2001 From: saxix Date: Thu, 20 Jun 2024 14:05:04 +0200 Subject: [PATCH] updates CI --- .github/workflows/delete_image.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/delete_image.yml b/.github/workflows/delete_image.yml index 59ab6790..797fb8ed 100644 --- a/.github/workflows/delete_image.yml +++ b/.github/workflows/delete_image.yml @@ -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/$( @@ -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/$(