Added matrix build for multiple python versions

This commit is contained in:
Firq 2024-07-22 18:16:13 +02:00
parent 78549910fa
commit 8da3105ab9
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
3 changed files with 21 additions and 5 deletions
.forgejo/workflows

View file

@ -1,11 +1,19 @@
on:
push:
tags:
- '[0-9]+\.[0-9]+'
branches:
- 'main'
paths:
- '.forgejo/workflows/*'
- 'Dockerfile'
- 'pip.conf'
jobs:
build:
runs-on: dind
strategy:
matrix:
python-version: [ '3.9', '3.10', '3.11', '3.12' ]
name: build-python-${{ matrix.python-version }}
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@ -19,7 +27,9 @@ jobs:
uses: docker/build-push-action@v5
with:
push: true
tags: forgejo.neshweb.net/ci-docker-images/python-neshweb:${{ github.ref_name }}
build-args: |
PYTHON_VERSION=${{ matrix.python-version }}
tags: forgejo.neshweb.net/ci-docker-images/python-neshweb:${{ matrix.python-version }}
release:
needs: [ build ]