update python version

This commit is contained in:
Attilio Greco 2024-12-20 17:44:48 +01:00
parent fc4a9597b6
commit 2ede7e10a8

View File

@ -10,37 +10,39 @@ jobs:
build_base_image:
strategy:
matrix:
python: ["3.10", "3.11", "3.12", "3.13"]
alpine: ["3.18", "3.19", "3.20"]
include:
- python: "3.10.6"
alpine: "3.16"
exclude:
- python: "3.12"
alpine: "3.16"
- python: 3.10.9
alpine: "3.15"
#"3.11", "3.12", "3.13", "3.14"
# "3.19", "3.20", "3.21"
python: ["3.10"]
alpine: ["3.18"]
# include:
# - python: "3.10.6"
# alpine: "3.16"
# exclude:
# - python: "3.12"
# alpine: "3.16"
# - python: 3.10.9
# alpine: "3.15"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Login to ghcr
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: |
image=moby/buildkit:v0.10.6
uses: docker/setup-buildx-action@v3
# with:
# driver-opts: |
# image=moby/buildkit:v0.10.6
- id: string
uses: ASzc/change-string-case-action@v5
@ -48,7 +50,7 @@ jobs:
string: ${{ github.repository_owner }}
- name: Build and push base
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
build-args: |
PYTHON_VERSION=${{ matrix.python }}
@ -60,7 +62,7 @@ jobs:
tags: ghcr.io/${{ steps.string.outputs.lowercase }}/web-base/python:${{ matrix.python }}-alpine${{ matrix.alpine }}
- name: Build and push Poetry
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
build-args: |
PYTHON_VERSION=${{ matrix.python }}