From 4a1dcb475ba88e9cc7ea96534659dfe23f8b7c20 Mon Sep 17 00:00:00 2001 From: Hossein Naderi Date: Wed, 10 Apr 2024 13:41:30 +0330 Subject: [PATCH] Added docker image flavors --- .github/workflows/docker-publish.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 }}