Test 25
Some checks failed
Build Docker Image / Build ARM64 (3.10) (push) Failing after 2m27s
Build Docker Image / Build ARM64 (3.11) (push) Failing after 2m28s
Build Docker Image / Build ARM64 (3.12) (push) Failing after 2m30s
Build Docker Image / Build ARM64 (3.13) (push) Failing after 1m27s
Build Docker Image / Create Multi-arch Manifest (3.10) (push) Has been skipped
Build Docker Image / Create Multi-arch Manifest (3.11) (push) Has been skipped
Build Docker Image / Create Multi-arch Manifest (3.12) (push) Has been skipped
Build Docker Image / Create Multi-arch Manifest (3.13) (push) Has been skipped

This commit is contained in:
2024-12-11 09:18:51 +02:00
parent 669209ad6d
commit 95047705cd

View File

@@ -6,56 +6,56 @@ on:
schedule:
- cron: '@monthly'
jobs:
build-amd64:
runs-on: linux_amd
name: Build AMD64
container:
image: catthehacker/ubuntu:act-latest
env:
RUNNER_TOOL_CACHE: /toolcache
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']
outputs:
digest-3-10: ${{ steps.digest.outputs.DIGEST_3_10 }}
digest-3-11: ${{ steps.digest.outputs.DIGEST_3_11 }}
digest-3-12: ${{ steps.digest.outputs.DIGEST_3_12 }}
digest-3-13: ${{ steps.digest.outputs.DIGEST_3_13 }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
github-server-url: https://gitea.technocloud.ee
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64
- name: Login to DockerHub
uses: docker/login-action@v3
with:
registry: gitea.technocloud.ee
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Get Meta
id: meta
run: |
echo "REPO_NAME=${GITHUB_REPOSITORY}" >> $GITHUB_OUTPUT
- name: Build and Push AMD64
id: build-docker
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.python${{ matrix.python-version }}
platforms: linux/amd64
push: true
provenance: false
outputs: type=image,name=gitea.technocloud.ee/${{ steps.meta.outputs.REPO_NAME }},push-by-digest=true
- name: Summarize the Docker digest
id: digest
run: |
PY_VERSION=${{ matrix.python-version }}
PY_VERSION_MOD=$(echo $PY_VERSION | sed 's/\./_/g')
echo DIGEST_${PY_VERSION_MOD}="${{ steps.build-docker.outputs.digest }}" >> $GITHUB_OUTPUT
# build-amd64:
# runs-on: linux_amd
# name: Build AMD64
# container:
# image: catthehacker/ubuntu:act-latest
# env:
# RUNNER_TOOL_CACHE: /toolcache
# strategy:
# matrix:
# python-version: ['3.10', '3.11', '3.12', '3.13']
# outputs:
# digest-3-10: ${{ steps.digest-3-10.outputs.digest }}
# digest-3-11: ${{ steps.digest-3-11.outputs.digest }}
# digest-3-12: ${{ steps.digest-3-12.outputs.digest }}
# digest-3-13: ${{ steps.digest-3-13.outputs.digest }}
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# github-server-url: https://gitea.technocloud.ee
# - name: Set up Docker BuildX
# uses: docker/setup-buildx-action@v3
# with:
# platforms: linux/amd64
# - name: Login to DockerHub
# uses: docker/login-action@v3
# with:
# registry: gitea.technocloud.ee
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
# - name: Get Meta
# id: meta
# run: |
# echo "REPO_NAME=${GITHUB_REPOSITORY}" >> $GITHUB_OUTPUT
# - name: Build and Push AMD64
# id: build-docker
# uses: docker/build-push-action@v5
# with:
# context: .
# file: Dockerfile.python${{ matrix.python-version }}
# platforms: linux/amd64
# push: true
# provenance: false
# outputs: type=image,name=gitea.technocloud.ee/${{ steps.meta.outputs.REPO_NAME }},push-by-digest=true
# - name: Summarize the Docker digest
# id: digest
# run: |
# PY_VERSION=${{ matrix.python-version }}
# PY_VERSION_MOD=$(echo $PY_VERSION | sed 's/\./_/g')
# echo DIGEST_${PY_VERSION_MOD}="${{ steps.build-docker.outputs.digest }}" >> $GITHUB_OUTPUT
build-arm64:
runs-on: ubuntu-latest
@@ -68,10 +68,10 @@ jobs:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']
outputs:
digest-3-10: ${{ steps.digest.outputs.DIGEST_3_10 }}
digest-3-11: ${{ steps.digest.outputs.DIGEST_3_11 }}
digest-3-12: ${{ steps.digest.outputs.DIGEST_3_12 }}
digest-3-13: ${{ steps.digest.outputs.DIGEST_3_13 }}
digest-3-10: ${{ steps.digest-3-10.outputs.digest }}
digest-3-11: ${{ steps.digest-3-11.outputs.digest }}
digest-3-12: ${{ steps.digest-3-12.outputs.digest }}
digest-3-13: ${{ steps.digest-3-13.outputs.digest }}
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -102,16 +102,21 @@ jobs:
provenance: false
outputs: type=image,name=gitea.technocloud.ee/${{ steps.meta.outputs.REPO_NAME }},push-by-digest=true
- name: Summarize the Docker digest
id: digest
id: digest-${{ matrix.python-version }}
run: |
PY_VERSION=${{ matrix.python-version }}
PY_VERSION_MOD=$(echo $PY_VERSION | sed 's/\./_/g')
echo DIGEST_${PY_VERSION_MOD}="${{ steps.build-docker.outputs.digest }}"
echo DIGEST_${PY_VERSION_MOD}="${{ steps.build-docker.outputs.digest }}" >> $GITHUB_OUTPUT
if [[ "${{ matrix.python-version }}" == "3.10" ]]; then
echo "digest=${{ steps.build-docker.outputs.digest }}" >> $GITHUB_OUTPUT
elif [[ "${{ matrix.python-version }}" == "3.11" ]]; then
echo "digest=${{ steps.build-docker.outputs.digest }}" >> $GITHUB_OUTPUT
elif [[ "${{ matrix.python-version }}" == "3.12" ]]; then
echo "digest=${{ steps.build-docker.outputs.digest }}" >> $GITHUB_OUTPUT
elif [[ "${{ matrix.python-version }}" == "3.13" ]]; then
echo "digest=${{ steps.build-docker.outputs.digest }}" >> $GITHUB_OUTPUT
fi
create-manifest:
needs: [build-arm64, build-amd64]
needs: [build-arm64]
runs-on: ubuntu-latest
name: Create Multi-arch Manifest
strategy: