Skip to content

Commit

Permalink
Merge pull request #86 from dockhippie/add-v3.12
Browse files Browse the repository at this point in the history
Add tag for 3.12 and update all patch versions
  • Loading branch information
tboerger authored Jun 26, 2024
2 parents 6555358 + 9640b37 commit ff6b8db
Show file tree
Hide file tree
Showing 20 changed files with 258 additions and 15 deletions.
159 changes: 159 additions & 0 deletions .github/workflows/v3.12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
---
name: v3.12

"on":
push:
branches:
- master
paths:
- v3.12/*
- .github/workflows/v3.12.yml
pull_request:
branches:
- master
paths:
- v3.12/*
- .github/workflows/v3.12.yml
workflow_dispatch:

jobs:
docker:
runs-on: ubuntu-latest

steps:
- name: Checkout source
id: source
uses: actions/checkout@v4

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
images: |
webhippie/python
quay.io/webhippie/python
ghcr.io/dockhippie/python
labels: |
org.opencontainers.image.vendor=Webhippie
maintainer=Thomas Boerger <[email protected]>
- name: Setup QEMU
id: qemu
uses: docker/setup-qemu-action@v3

- name: Setup Buildx
id: buildx
uses: docker/setup-buildx-action@v3

- name: Hub login
id: login1
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Quay login
id: login2
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}

- name: Ghcr login
id: login3
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build amd64
id: amd64
uses: docker/build-push-action@v5
with:
builder: ${{ steps.buildx.outputs.name }}
context: v3.12/
provenance: false
file: v3.12/Dockerfile.amd64
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
labels: ${{ steps.meta.outputs.labels }}
tags: |
webhippie/python:3.12-amd64
quay.io/webhippie/python:3.12-amd64
ghcr.io/dockhippie/python:3.12-amd64
- name: Build arm64
id: arm64
uses: docker/build-push-action@v5
with:
builder: ${{ steps.buildx.outputs.name }}
context: v3.12/
provenance: false
file: v3.12/Dockerfile.arm64
platforms: linux/arm64
push: ${{ github.event_name != 'pull_request' }}
labels: ${{ steps.meta.outputs.labels }}
tags: |
webhippie/python:3.12-arm64
quay.io/webhippie/python:3.12-arm64
ghcr.io/dockhippie/python:3.12-arm64
- name: Build arm
id: arm
uses: docker/build-push-action@v5
with:
builder: ${{ steps.buildx.outputs.name }}
context: v3.12/
provenance: false
file: v3.12/Dockerfile.arm
platforms: linux/arm/v6
push: ${{ github.event_name != 'pull_request' }}
labels: ${{ steps.meta.outputs.labels }}
tags: |
webhippie/python:3.12-arm
quay.io/webhippie/python:3.12-arm
ghcr.io/dockhippie/python:3.12-arm
- name: Hub manifest
id: manifest1
uses: actionhippie/manifest@v1
if: github.event_name != 'pull_request'
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
platforms: linux/amd64,linux/arm64,linux/arm/v6
template: webhippie/python:3.12-ARCH
target: webhippie/python:3.12
ignore_missing: true

- name: Quay manifest
id: manifest2
uses: actionhippie/manifest@v1
if: github.event_name != 'pull_request'
with:
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
platforms: linux/amd64,linux/arm64,linux/arm/v6
template: quay.io/webhippie/python:3.12-ARCH
target: quay.io/webhippie/python:3.12
ignore_missing: true

- name: Ghcr manifest
id: manifest3
uses: actionhippie/manifest@v1
if: github.event_name != 'pull_request'
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
platforms: linux/amd64,linux/arm64,linux/arm/v6
template: ghcr.io/dockhippie/python:3.12-ARCH
target: ghcr.io/dockhippie/python:3.12
ignore_missing: true

...
2 changes: 1 addition & 1 deletion v3.10/Dockerfile.amd64
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ghcr.io/dockhippie/alpine:latest-amd64@sha256:86f09a70abbc6a572b557a221ad8d
WORKDIR /srv/app

# renovate: datasource=github-tags depName=python/cpython
ENV PYTHON_VERSION=v3.10.10
ENV PYTHON_VERSION=v3.10.14

RUN apk update && \
apk upgrade && \
Expand Down
2 changes: 1 addition & 1 deletion v3.10/Dockerfile.arm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ghcr.io/dockhippie/alpine:latest-arm@sha256:d1eb4dd457e2faee45d8ee186148631
WORKDIR /srv/app

# renovate: datasource=github-tags depName=python/cpython
ENV PYTHON_VERSION=v3.10.10
ENV PYTHON_VERSION=v3.10.14

RUN apk update && \
apk upgrade && \
Expand Down
2 changes: 1 addition & 1 deletion v3.10/Dockerfile.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ghcr.io/dockhippie/alpine:latest-arm64@sha256:40c758b2166fcd124e9db424904cd
WORKDIR /srv/app

# renovate: datasource=github-tags depName=python/cpython
ENV PYTHON_VERSION=v3.10.10
ENV PYTHON_VERSION=v3.10.14

RUN apk update && \
apk upgrade && \
Expand Down
2 changes: 1 addition & 1 deletion v3.11/Dockerfile.amd64
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ghcr.io/dockhippie/alpine:latest-amd64@sha256:86f09a70abbc6a572b557a221ad8d
WORKDIR /srv/app

# renovate: datasource=github-tags depName=python/cpython
ENV PYTHON_VERSION=v3.11.3
ENV PYTHON_VERSION=v3.11.9

RUN apk update && \
apk upgrade && \
Expand Down
2 changes: 1 addition & 1 deletion v3.11/Dockerfile.arm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ghcr.io/dockhippie/alpine:latest-arm@sha256:d1eb4dd457e2faee45d8ee186148631
WORKDIR /srv/app

# renovate: datasource=github-tags depName=python/cpython
ENV PYTHON_VERSION=v3.11.3
ENV PYTHON_VERSION=v3.11.9

RUN apk update && \
apk upgrade && \
Expand Down
2 changes: 1 addition & 1 deletion v3.11/Dockerfile.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ghcr.io/dockhippie/alpine:latest-arm64@sha256:40c758b2166fcd124e9db424904cd
WORKDIR /srv/app

# renovate: datasource=github-tags depName=python/cpython
ENV PYTHON_VERSION=v3.11.3
ENV PYTHON_VERSION=v3.11.9

RUN apk update && \
apk upgrade && \
Expand Down
28 changes: 28 additions & 0 deletions v3.12/Dockerfile.amd64
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM ghcr.io/dockhippie/alpine:latest-amd64@sha256:937485527f1414666b4180ba0cf297155f099f51b8f7077bda91feb99e953998

WORKDIR /srv/app

# renovate: datasource=github-tags depName=python/cpython
ENV PYTHON_VERSION=v3.12.3

RUN apk update && \
apk upgrade && \
apk add build-base git expat-dev openssl-dev zlib-dev ncurses-dev bzip2-dev xz-dev sqlite-dev libffi-dev tcl-dev linux-headers gdbm-dev readline-dev && \
curl -sLo - https://www.python.org/ftp/python/${PYTHON_VERSION#v}/Python-${PYTHON_VERSION#v}.tgz | tar -xzf - -C /tmp && \
cd /tmp/Python-${PYTHON_VERSION#v} && \
./configure --prefix=/usr --disable-rpath --enable-ipv6 --enable-loadable-sqlite-extensions --enable-shared --with-lto --with-computed-gotos --with-dbmliborder=gdbm:ndbm --with-system-expat --with-system-ffi --with-threads && \
make && \
make install && \
ln -sf /usr/bin/python3.12 /usr/bin/python && \
ln -sf /usr/bin/pip3.12 /usr/bin/pip && \
ln -sf /usr/bin/python3.12m-config /usr/bin/python-config && \
ln -sf /usr/bin/pydoc3.12 /usr/bin/pydoc && \
ln -sf /usr/bin/easy_install-3.12 /usr/bin/easy_install && \
ln -sf /usr/bin/idle3.12 /usr/bin/idle && \
cd && \
rm -rf /tmp/Python-${PYTHON_VERSION#v} && \
curl -sLo - https://bootstrap.pypa.io/get-pip.py | python && \
pip install -U pip tox && \
rm -rf /var/cache/apk/*

COPY ./overlay /
28 changes: 28 additions & 0 deletions v3.12/Dockerfile.arm
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM ghcr.io/dockhippie/alpine:latest-arm@sha256:6d18ba785ca97bc548059e12fffabbee9557d89dfa281a4f380f2018d98702c9

WORKDIR /srv/app

# renovate: datasource=github-tags depName=python/cpython
ENV PYTHON_VERSION=v3.12.3

RUN apk update && \
apk upgrade && \
apk add build-base git expat-dev openssl-dev zlib-dev ncurses-dev bzip2-dev xz-dev sqlite-dev libffi-dev tcl-dev linux-headers gdbm-dev readline-dev && \
curl -sLo - https://www.python.org/ftp/python/${PYTHON_VERSION#v}/Python-${PYTHON_VERSION#v}.tgz | tar -xzf - -C /tmp && \
cd /tmp/Python-${PYTHON_VERSION#v} && \
./configure --prefix=/usr --disable-rpath --enable-ipv6 --enable-loadable-sqlite-extensions --enable-shared --with-lto --with-computed-gotos --with-dbmliborder=gdbm:ndbm --with-system-expat --with-system-ffi --with-threads && \
make && \
make install && \
ln -sf /usr/bin/python3.12 /usr/bin/python && \
ln -sf /usr/bin/pip3.12 /usr/bin/pip && \
ln -sf /usr/bin/python3.12m-config /usr/bin/python-config && \
ln -sf /usr/bin/pydoc3.12 /usr/bin/pydoc && \
ln -sf /usr/bin/easy_install-3.12 /usr/bin/easy_install && \
ln -sf /usr/bin/idle3.12 /usr/bin/idle && \
cd && \
rm -rf /tmp/Python-${PYTHON_VERSION#v} && \
curl -sLo - https://bootstrap.pypa.io/get-pip.py | python && \
pip install -U pip tox && \
rm -rf /var/cache/apk/*

COPY ./overlay /
28 changes: 28 additions & 0 deletions v3.12/Dockerfile.arm64
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM ghcr.io/dockhippie/alpine:latest-arm64@sha256:5ef1665b9d7d104f93ca110f2e7ceb8677c1a4980b79f02a5ff9476cf2540864

WORKDIR /srv/app

# renovate: datasource=github-tags depName=python/cpython
ENV PYTHON_VERSION=v3.12.3

RUN apk update && \
apk upgrade && \
apk add build-base git expat-dev openssl-dev zlib-dev ncurses-dev bzip2-dev xz-dev sqlite-dev libffi-dev tcl-dev linux-headers gdbm-dev readline-dev && \
curl -sLo - https://www.python.org/ftp/python/${PYTHON_VERSION#v}/Python-${PYTHON_VERSION#v}.tgz | tar -xzf - -C /tmp && \
cd /tmp/Python-${PYTHON_VERSION#v} && \
./configure --prefix=/usr --disable-rpath --enable-ipv6 --enable-loadable-sqlite-extensions --enable-shared --with-lto --with-computed-gotos --with-dbmliborder=gdbm:ndbm --with-system-expat --with-system-ffi --with-threads && \
make && \
make install && \
ln -sf /usr/bin/python3.12 /usr/bin/python && \
ln -sf /usr/bin/pip3.12 /usr/bin/pip && \
ln -sf /usr/bin/python3.12m-config /usr/bin/python-config && \
ln -sf /usr/bin/pydoc3.12 /usr/bin/pydoc && \
ln -sf /usr/bin/easy_install-3.12 /usr/bin/easy_install && \
ln -sf /usr/bin/idle3.12 /usr/bin/idle && \
cd && \
rm -rf /tmp/Python-${PYTHON_VERSION#v} && \
curl -sLo - https://bootstrap.pypa.io/get-pip.py | python && \
pip install -U pip tox && \
rm -rf /var/cache/apk/*

COPY ./overlay /
Empty file added v3.12/overlay/srv/app/.keep
Empty file.
2 changes: 1 addition & 1 deletion v3.7/Dockerfile.amd64
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ghcr.io/dockhippie/alpine:latest-amd64@sha256:86f09a70abbc6a572b557a221ad8d
WORKDIR /srv/app

# renovate: datasource=github-tags depName=python/cpython
ENV PYTHON_VERSION=v3.7.16
ENV PYTHON_VERSION=v3.7.17

RUN apk update && \
apk upgrade && \
Expand Down
2 changes: 1 addition & 1 deletion v3.7/Dockerfile.arm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ghcr.io/dockhippie/alpine:latest-arm@sha256:d1eb4dd457e2faee45d8ee186148631
WORKDIR /srv/app

# renovate: datasource=github-tags depName=python/cpython
ENV PYTHON_VERSION=v3.7.16
ENV PYTHON_VERSION=v3.7.17

RUN apk update && \
apk upgrade && \
Expand Down
2 changes: 1 addition & 1 deletion v3.7/Dockerfile.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ghcr.io/dockhippie/alpine:latest-arm64@sha256:40c758b2166fcd124e9db424904cd
WORKDIR /srv/app

# renovate: datasource=github-tags depName=python/cpython
ENV PYTHON_VERSION=v3.7.16
ENV PYTHON_VERSION=v3.7.17

RUN apk update && \
apk upgrade && \
Expand Down
2 changes: 1 addition & 1 deletion v3.8/Dockerfile.amd64
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ghcr.io/dockhippie/alpine:latest-amd64@sha256:86f09a70abbc6a572b557a221ad8d
WORKDIR /srv/app

# renovate: datasource=github-tags depName=python/cpython
ENV PYTHON_VERSION=v3.8.16
ENV PYTHON_VERSION=v3.8.19

RUN apk update && \
apk upgrade && \
Expand Down
2 changes: 1 addition & 1 deletion v3.8/Dockerfile.arm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ghcr.io/dockhippie/alpine:latest-arm@sha256:d1eb4dd457e2faee45d8ee186148631
WORKDIR /srv/app

# renovate: datasource=github-tags depName=python/cpython
ENV PYTHON_VERSION=v3.8.16
ENV PYTHON_VERSION=v3.8.19

RUN apk update && \
apk upgrade && \
Expand Down
2 changes: 1 addition & 1 deletion v3.8/Dockerfile.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ghcr.io/dockhippie/alpine:latest-arm64@sha256:40c758b2166fcd124e9db424904cd
WORKDIR /srv/app

# renovate: datasource=github-tags depName=python/cpython
ENV PYTHON_VERSION=v3.8.16
ENV PYTHON_VERSION=v3.8.19

RUN apk update && \
apk upgrade && \
Expand Down
2 changes: 1 addition & 1 deletion v3.9/Dockerfile.amd64
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ghcr.io/dockhippie/alpine:latest-amd64@sha256:86f09a70abbc6a572b557a221ad8d
WORKDIR /srv/app

# renovate: datasource=github-tags depName=python/cpython
ENV PYTHON_VERSION=v3.9.16
ENV PYTHON_VERSION=v3.9.19

RUN apk update && \
apk upgrade && \
Expand Down
2 changes: 1 addition & 1 deletion v3.9/Dockerfile.arm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ghcr.io/dockhippie/alpine:latest-arm@sha256:d1eb4dd457e2faee45d8ee186148631
WORKDIR /srv/app

# renovate: datasource=github-tags depName=python/cpython
ENV PYTHON_VERSION=v3.9.16
ENV PYTHON_VERSION=v3.9.19

RUN apk update && \
apk upgrade && \
Expand Down
2 changes: 1 addition & 1 deletion v3.9/Dockerfile.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ghcr.io/dockhippie/alpine:latest-arm64@sha256:40c758b2166fcd124e9db424904cd
WORKDIR /srv/app

# renovate: datasource=github-tags depName=python/cpython
ENV PYTHON_VERSION=v3.9.16
ENV PYTHON_VERSION=v3.9.19

RUN apk update && \
apk upgrade && \
Expand Down

0 comments on commit ff6b8db

Please sign in to comment.