-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from dockhippie/add-v3.12
Add tag for 3.12 and update all patch versions
- Loading branch information
Showing
20 changed files
with
258 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters