Skip to content

Commit

Permalink
test for python
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrai2 committed Dec 17, 2024
1 parent 10db32b commit 273ef5e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,4 @@ jobs:
uses: ./.github/workflows/container-build.yml
with:
build-version: dev
tags: |
ghcr.io/fkie-cad/logprep:py${{ matrix.python-version }}-${{ github.head_ref }}
tags: ["${{ github.head_ref }}"]
11 changes: 8 additions & 3 deletions .github/workflows/container-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
tags:
description: "Tags to apply to the image"
required: true
type: string
type: array

jobs:
containerbuild:
Expand Down Expand Up @@ -41,10 +41,15 @@ jobs:
LOGPREP_VERSION=${{ inputs.build-version }}
PYTHON_VERSION=${{ matrix.python-version }}
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
docker run --rm ghcr.io/fkie-cad/logprep:${{ steps.build-and-push.outputs.metadata."image.name" }}@${{ steps.build-and-push.outputs.digest }} --version
- name: Push image
uses: docker/build-push-action@v6
Expand All @@ -54,7 +59,7 @@ jobs:
build-args: |
LOGPREP_VERSION=${{ inputs.build-version }}
PYTHON_VERSION=${{ matrix.python-version }}
tags: ${{ join(inputs.tags, '\n') }}
tags: ${{ inputs.tags }}

- name: Install Cosign
uses: sigstore/[email protected]
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/publish-latest-dev-release-to-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,4 @@ jobs:
needs: create-github-prerelease
with:
build-version: ${{ github.ref_name }}
tags: |
ghcr.io/fkie-cad/logprep:py${{ matrix.python-version }}-main
ghcr.io/fkie-cad/logprep:py${{ matrix.python-version }}-latest
tags: ["main", "latest"]
5 changes: 1 addition & 4 deletions .github/workflows/publish-release-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,4 @@ jobs:
needs: publish-latest-release-to-pypi
with:
build-version: ${{ github.ref_name }}
tags: |
ghcr.io/fkie-cad/logprep:py${{ matrix.python-version }}-${{ github.ref_name }}
ghcr.io/fkie-cad/logprep:py${{ matrix.python-version }}-stable
ghcr.io/fkie-cad/logprep:py${{ matrix.python-version }}-latest
tags: ["${{ github.ref_name }}", "stable", "latest"]

0 comments on commit 273ef5e

Please sign in to comment.