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