diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 5b6c379..0483ddd 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -11,11 +11,19 @@ on: pull_request: +# Runs of one event and branch or tag never overlap, so an older master run +# cannot finish last and move floating tags back. A newer pending run of the +# same event replaces an older one; other events never replace each other. +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} + cancel-in-progress: false + env: - PYTHON314: '3.14.8' - PYTHON313: '3.13.16' - PYTHON312: '3.12.15' - PYTHON311: '3.11.17' + PYTHON315: '3.15.2' + PYTHON314: '3.14.10' + PYTHON313: '3.13.18' + PYTHON312: '3.12.16' + PYTHON311: '3.11.18' jobs: setup: @@ -27,7 +35,8 @@ jobs: run: | cat << 'EOF' > versions.json [ - {"key": "python314", "version": "${{ env.PYTHON314 }}", "latest": "latest", "latest_major": "3"}, + {"key": "python315", "version": "${{ env.PYTHON315 }}", "latest": "latest", "latest_major": "3"}, + {"key": "python314", "version": "${{ env.PYTHON314 }}", "latest": "", "latest_major": ""}, {"key": "python313", "version": "${{ env.PYTHON313 }}", "latest": "", "latest_major": ""}, {"key": "python312", "version": "${{ env.PYTHON312 }}", "latest": "", "latest_major": ""}, {"key": "python311", "version": "${{ env.PYTHON311 }}", "latest": "", "latest_major": ""} @@ -87,13 +96,9 @@ jobs: password: ${{ secrets.DOCKER_PASSWORD }} - name: Push architecture image if: github.event_name == 'push' - env: - PYTHON_VER: ${{ matrix.python.version }} - ARCH: ${{ matrix.arch }} - PYTHON_DEV: ${{ matrix.dev }} - WODBY_USER_ID: ${{ matrix.user_id }} - WODBY_GROUP_ID: ${{ matrix.group_id }} - run: make push + uses: wodby/images/.github/actions/arch-image-push@2da5f02ec3dffc5cb3331152e01e3c89874b0bfe + with: + image: ${{ steps.build-image.outputs.image }} push: if: github.event_name == 'push' @@ -120,6 +125,7 @@ jobs: with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + - uses: wodby/images/.github/actions/arch-image-pins@2da5f02ec3dffc5cb3331152e01e3c89874b0bfe - uses: ./.github/actions with: version: ${{ matrix.python.version }} @@ -138,7 +144,7 @@ jobs: group: image-revision-aliases-${{ github.ref }} cancel-in-progress: false steps: - - uses: wodby/images/.github/actions/image-revision-aliases@412e2d9ce29c41835ff653b0945bba72eabd9efb + - uses: wodby/images/.github/actions/image-revision-aliases@aee656b81ae84e0dca0cfdbea173057abe4a9426 with: docker_username: ${{ secrets.DOCKER_USERNAME }} docker_password: ${{ secrets.DOCKER_PASSWORD }} diff --git a/.grype.yaml b/.grype.yaml index 558b527..ad89087 100644 --- a/.grype.yaml +++ b/.grype.yaml @@ -7,3 +7,13 @@ ignore: name: python version: 3.11.17 type: binary + + # CVE-2026-119170 is a hashlib regression that only affects Python 3.14.10 with OpenSSL in FIPS + # mode. The Alpine images do not run OpenSSL in FIPS mode, and Python 3.14.11 with the fix is not + # released yet: https://github.com/python/cpython/issues/160923 + # The rule matches only 3.14.10; remove it when the images move to 3.14.11. + - vulnerability: CVE-2026-119170 + package: + name: python + version: 3.14.10 + type: binary diff --git a/.image-revision-aliases.json b/.image-revision-aliases.json index 70685cc..88304e9 100644 --- a/.image-revision-aliases.json +++ b/.image-revision-aliases.json @@ -4,7 +4,7 @@ "versions": [ { "version": { - "env": "PYTHON314" + "env": "PYTHON315" }, "variants": [ { @@ -30,6 +30,31 @@ } ] }, + { + "version": { + "env": "PYTHON314" + }, + "variants": [ + { + "short": [ + "{minor}" + ], + "full": "{version}" + }, + { + "short": [ + "{minor}-dev" + ], + "full": "{version}-dev" + }, + { + "short": [ + "{minor}-dev-macos" + ], + "full": "{version}-dev-macos" + } + ] + }, { "version": { "env": "PYTHON313" diff --git a/Makefile b/Makefile index f98db62..26e2bd8 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ -include env_make -PYTHON_VER ?= 3.14.8 +PYTHON_VER ?= 3.15.2 PYTHON_VER_MINOR := $(shell v='$(PYTHON_VER)'; echo "$${v%.*}") REPO = wodby/python @@ -79,10 +79,15 @@ buildx-push: --build-arg WODBY_GROUP_ID=$(WODBY_GROUP_ID) \ ./ +# CI combines the exact architecture images this workflow run pushed; see +# wodby/images arch-image-pins. Per-architecture tags are shared by every run, +# so an overlapping run may already have replaced one of them. +arch-image = $(if $(ARCH_IMAGE_PINS),$(or $(shell cat '$(ARCH_IMAGE_PINS)/$(subst :,_,$(subst /,_,$(1)))' 2>/dev/null),$(error No digest of $(1) was pushed by this workflow run)),$(1)) + buildx-imagetools-create: docker buildx imagetools create -t $(REPO):$(IMAGETOOLS_TAG) \ - $(REPO):$(TAG)-amd64 \ - $(REPO):$(TAG)-arm64 + $(call arch-image,$(REPO):$(TAG)-amd64) \ + $(call arch-image,$(REPO):$(TAG)-arm64) .PHONY: buildx-imagetools-create test: diff --git a/README.md b/README.md index 6dd8f6a..15c7e5c 100644 --- a/README.md +++ b/README.md @@ -39,15 +39,18 @@ About images: Supported tags and respective `Dockerfile` links: -- `3.14`, `3`, `latest` [_(Dockerfile)_] +- `3.15`, `3`, `latest` [_(Dockerfile)_] +- `3.14` [_(Dockerfile)_] - `3.13` [_(Dockerfile)_] - `3.12` [_(Dockerfile)_] - `3.11` [_(Dockerfile)_] -- `3.14-dev`, `3-dev` [_(Dockerfile)_] +- `3.15-dev`, `3-dev` [_(Dockerfile)_] +- `3.14-dev` [_(Dockerfile)_] - `3.13-dev` [_(Dockerfile)_] - `3.12-dev` [_(Dockerfile)_] - `3.11-dev` [_(Dockerfile)_] -- `3.14-dev-macos`, `3-dev-macos` [_(Dockerfile)_] +- `3.15-dev-macos`, `3-dev-macos` [_(Dockerfile)_] +- `3.14-dev-macos` [_(Dockerfile)_] - `3.13-dev-macos` [_(Dockerfile)_] - `3.12-dev-macos` [_(Dockerfile)_] - `3.11-dev-macos` [_(Dockerfile)_] diff --git a/base-images.mk b/base-images.mk index 6686a8a..2d30087 100644 --- a/base-images.mk +++ b/base-images.mk @@ -3,10 +3,11 @@ BASE_IMAGE_REPOSITORY := python BASE_IMAGE_VERSION_SUFFIX := -alpine -BASE_IMAGE_DIGEST_3.11.17-alpine := sha256:faa35f7f7a56c17c2796719f9903b42cb17d59e671a6a74bf85549432e38770e -BASE_IMAGE_DIGEST_3.12.15-alpine := sha256:8a001d79e5a57ae4de7faa57af12f3d589058ea06ac42ec850c1cb0ac325bd21 -BASE_IMAGE_DIGEST_3.13.16-alpine := sha256:1ac543fc677b1e24cfb220f2e9f2c73d6d9f1d5e718c2bbe5801cae34732f899 -BASE_IMAGE_DIGEST_3.14.8-alpine := sha256:8acac70227ce3b34da9453120c375cc5b66cd0b062d4dc6bc74286f81a3819e1 +BASE_IMAGE_DIGEST_3.11.18-alpine := sha256:7fbad8e4652eae0186429a6f26cf5b23e27e8c6fd7ac4d0cfd7a6988cdeea1e1 +BASE_IMAGE_DIGEST_3.12.16-alpine := sha256:c5ba3deef00c7758561a0f03c26f44f10589263d40e732b8748e0d1f38f6dd89 +BASE_IMAGE_DIGEST_3.13.18-alpine := sha256:9ef1a599f863231c3d91e941389bfdc4a2d6070557243d54df1a4e57015b960e +BASE_IMAGE_DIGEST_3.14.10-alpine := sha256:5862d971d1f0ae26b258cefa4e893556b1d3aba81bd2ff30888704ad378bab67 +BASE_IMAGE_DIGEST_3.15.2-alpine := sha256:0f9552bb28711333da16915ec146f5e6bb44a7fdac9ced15dc17c2e0206346dd # Fail before building when a version or variant has no reviewed pin. BASE_IMAGE = $(BASE_IMAGE_REPOSITORY):$(BASE_IMAGE_TAG)@$(or $(BASE_IMAGE_DIGEST_$(BASE_IMAGE_TAG)),$(error No base image digest for $(BASE_IMAGE_REPOSITORY):$(BASE_IMAGE_TAG); update base-images.mk))