diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 02e80d9..8cdedcd 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -6,6 +6,10 @@ on: jobs: publish: runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.11"] + base: ["", "-alpine", "-slim"] steps: - uses: actions/checkout@v4 with: @@ -30,5 +34,7 @@ jobs: context: . push: true tags: | - ghcr.io/${{ github.repository }}:${{ steps.get_version.outputs.VERSION }} - ghcr.io/${{ github.repository }}:latest + ghcr.io/${{ github.repository }}:${{ steps.get_version.outputs.VERSION }}${{ matrix.base }} + ghcr.io/${{ github.repository }}:latest${{ matrix.base }} + args: | + IMAGE=${{ matrix.python-version }}${{ matrix.base }}