diff --git a/.github/workflows/cut-release.yml b/.github/workflows/cut-release.yml index 76d88bbca6..63f094cd69 100644 --- a/.github/workflows/cut-release.yml +++ b/.github/workflows/cut-release.yml @@ -186,12 +186,11 @@ jobs: with: name: release - name: Build Release Container - run: > - docker build - --build-arg CLAIR_VERSION - --tag "${TAG}" - - - <${{steps.download.outputs.download-path}}/clair.tar.gz + run: | + d=$(mktemp -d) + trap 'rm -rf "$d"' EXIT + tar -xz -f ${{steps.download.outputs.download-path}}/clair.tar.gz --strip-components=1 -C "$d" + docker build --build-arg CLAIR_VERSION --tag "${TAG}" "$d" - name: Publish Release Container run: | docker login -u "${QUAY_USER}" -p '${{ secrets.QUAY_TOKEN }}' quay.io