diff --git a/.github/workflows/container-build.yml b/.github/workflows/container-build.yml index 562ec0d61..1d3a65973 100644 --- a/.github/workflows/container-build.yml +++ b/.github/workflows/container-build.yml @@ -20,6 +20,15 @@ jobs: python-version: [ "3.10", "3.11", "3.12" ] steps: + - name: Create Image Tags + id: image-tag + run: | + python -c "print('tags', ', '.join([f'ghcr.io/fkie-cad/logprep:py${{ matrix.python-version }}-{tag.strip()}' for tag in '${{ inputs.tags }}'.split(',')]), sep='')" >> $GITHUB_OUTPUT + + - name: Debug Image Tag + run: | + echo "${{ steps.image-tag.outputs.tags }}" + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -31,14 +40,7 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Create Image Tags - id: image-tag - run: | - python -c "print('tags', ', '.join([f'ghcr.io/fkie-cad/logprep:py${{ matrix.python-version }}-{tag.strip()}' for tag in '${{ inputs.tags }}'.split(',')]), sep="")" >> $GITHUB_OUTPUT - - name: Debug Image Tag - run: | - echo "${{ steps.image-tag.outputs.tags }}" - name: Build image and export to Docker uses: docker/build-push-action@v6