Test 21
Some checks failed
Build Docker Image / Create Multi-arch Manifest (3.10) (push) Blocked by required conditions
Build Docker Image / Build ARM64 (3.10) (push) Failing after 1m25s
Build Docker Image / Build AMD64 (3.10) (push) Has been cancelled

This commit is contained in:
2024-12-10 23:33:46 +02:00
parent 599b863695
commit 6cfc2d11f6

View File

@@ -12,7 +12,6 @@ jobs:
container:
image: catthehacker/ubuntu:act-latest
env:
DOCKER_ORG: technocloud-public
RUNNER_TOOL_CACHE: /toolcache
strategy:
matrix:
@@ -37,10 +36,6 @@ jobs:
registry: gitea.technocloud.ee
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Get Meta
id: meta
run: |
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
- name: Build and Push AMD64
id: build-docker
uses: docker/build-push-action@v5
@@ -50,7 +45,7 @@ jobs:
platforms: linux/amd64
push: true
provenance: false
outputs: type=image,name=gitea.technocloud.ee/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }},push-by-digest=true
outputs: type=image,name=gitea.technocloud.ee/${GITHUB_REPOSITORY},push-by-digest=true
- name: Summarize the Docker digest
id: digest
run: |
@@ -65,7 +60,6 @@ jobs:
container:
image: catthehacker/ubuntu:act-latest
env:
DOCKER_ORG: technocloud-public
RUNNER_TOOL_CACHE: /toolcache
strategy:
matrix:
@@ -90,10 +84,6 @@ jobs:
registry: gitea.technocloud.ee
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Get Meta
id: meta
run: |
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
- name: Build and Push ARM64
id: build-docker
uses: docker/build-push-action@v6
@@ -103,7 +93,7 @@ jobs:
platforms: linux/arm64
push: true
provenance: false
outputs: type=image,name=gitea.technocloud.ee/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }},push-by-digest=true
outputs: type=image,name=gitea.technocloud.ee/${GITHUB_REPOSITORY},push-by-digest=true
- name: Summarize the Docker digest
id: digest
run: |
@@ -138,7 +128,6 @@ jobs:
- name: Get Repository Metadata
id: meta
run: |
echo "REPO_NAME=${GITHUB_REPOSITORY}" >> $GITHUB_OUTPUT
echo "PY_VERSION=digest-$(echo ${{ matrix.python-version }} | sed 's/\./-/g')" >> $GITHUB_OUTPUT
- name: Create and Push Multi-arch Manifest
@@ -149,6 +138,6 @@ jobs:
AMD_DIGEST=${{ needs.build-amd64.outputs[steps.meta.outputs.PY_VERSION] }}
echo $ARM_DIGEST
echo $AMD_DIGEST
IMAGE_NAME=gitea.technocloud.ee/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:python${{ matrix.python-version }}
IMAGE_NAME=gitea.technocloud.ee/${GITHUB_REPOSITORY}:python${{ matrix.python-version }}
docker manifest create $IMAGE_NAME --amend gitea.technocloud.ee/technocloud-public/nginx-unit@${ARM_DIGEST} --amend gitea.technocloud.ee/technocloud-public/nginx-unit@${AMD_DIGEST}
docker manifest push $IMAGE_NAME