From cccdb0f19b44986d2b3bee76e3db44a8a52e0a59 Mon Sep 17 00:00:00 2001 From: dtrai2 Date: Tue, 17 Dec 2024 14:30:55 +0100 Subject: [PATCH] debug image tag --- .github/workflows/container-build.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/container-build.yml b/.github/workflows/container-build.yml index 5dc2653ec..8b5625cee 100644 --- a/.github/workflows/container-build.yml +++ b/.github/workflows/container-build.yml @@ -31,6 +31,15 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Create Image Tags + id: image-tag + run: | + python -c "print(', '.join([f'ghcr.io/fkie-cad/logprep:py${{ matrix.python-version }}-{tag}' for tag in '${{ inputs.tags }}'.split(',')]))" + + - name: Debug Image Tag + run: | + echo "${{ image-tag.output }}" + - name: Build image and export to Docker uses: docker/build-push-action@v6 id: build-and-push @@ -43,10 +52,6 @@ jobs: tags: ${{ inputs.tags }} # ghcr.io/fkie-cad/logprep:py${{ matrix.python-version }}-${{ github.head_ref }} - - name: Test Python - run: | - python --version - - name: Ensure logprep is available in image run: | docker run --rm ghcr.io/fkie-cad/logprep@${{ steps.build-and-push.outputs.digest }} --version