Removed unit project; use matrix to build
Some checks failed
Build Docker Image / build-and-deploy-image (3.12) (push) Waiting to run
Build Docker Image / build-and-deploy-image (3.11) (push) Waiting to run
Build Docker Image / build-and-deploy-image (3.10) (push) Has been cancelled

This commit is contained in:
2024-07-20 10:48:03 +03:00
parent a92c5c45e2
commit 1be88e1973
1078 changed files with 16 additions and 208337 deletions

View File

@@ -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 }}