Added matrix build for multiple python versions
This commit is contained in:
parent
78549910fa
commit
8da3105ab9
3 changed files with 21 additions and 5 deletions
.forgejo/workflows
|
@ -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 ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue