Removed unit project; use matrix to build
This commit is contained in:
@@ -15,6 +15,9 @@ jobs:
|
||||
env:
|
||||
DOCKER_ORG: technocloud-public
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ['3.10', '3.11', '3.12']
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
@@ -41,29 +44,29 @@ jobs:
|
||||
run: |
|
||||
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build and push Python 3.10
|
||||
- name: Build and push Python ${{ matrix.python-version }}
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: pkg/docker
|
||||
file: pkg/docker/Dockerfile.python3.10
|
||||
context: .
|
||||
file: Dockerfile.python${{ matrix.python-version }}
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: gitea.technocloud.ee/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:python3.10
|
||||
tags: gitea.technocloud.ee/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:python${{ matrix.python-version }}
|
||||
|
||||
- name: Build and push Python 3.11
|
||||
- name: Build and push Python ${{ matrix.python-version }}
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: pkg/docker
|
||||
file: pkg/docker/Dockerfile.python3.11
|
||||
context: .
|
||||
file: Dockerfile.python${{ matrix.python-version }}
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: gitea.technocloud.ee/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:python3.11
|
||||
tags: gitea.technocloud.ee/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:python${{ matrix.python-version }}
|
||||
|
||||
- name: Build and push Python 3.12
|
||||
- name: Build and push Python ${{ matrix.python-version }}
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: pkg/docker
|
||||
file: pkg/docker/Dockerfile.python3.12
|
||||
context: .
|
||||
file: Dockerfile.python${{ matrix.python-version }}
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: gitea.technocloud.ee/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:python3.12
|
||||
tags: gitea.technocloud.ee/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:python${{ matrix.python-version }}
|
||||
|
||||
Reference in New Issue
Block a user