Test 6
All checks were successful
Build Docker Image / Build ARM64 (3.10) (push) Successful in 1m53s

This commit is contained in:
2024-12-10 21:34:04 +02:00
parent 32dbd4cc5d
commit 7e2729e0dc

View File

@@ -83,7 +83,7 @@ jobs:
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
- name: Build and Push ARM64 - name: Build and Push ARM64
id: build id: build
uses: docker/build-push-action@v5 uses: docker/build-push-action@v6
with: with:
context: . context: .
file: Dockerfile.python${{ matrix.python-version }} file: Dockerfile.python${{ matrix.python-version }}
@@ -95,39 +95,39 @@ jobs:
run: | run: |
echo 'Digest: ${{ steps.build-docker.outputs.digest }}' echo 'Digest: ${{ steps.build-docker.outputs.digest }}'
create-manifest: # create-manifest:
needs: [build-arm64] # needs: [build-arm64]
runs-on: ubuntu-latest # runs-on: ubuntu-latest
name: Create Multi-arch Manifest # name: Create Multi-arch Manifest
env: # env:
DOCKER_ORG: technocloud-public # DOCKER_ORG: technocloud-public
strategy: # strategy:
matrix: # matrix:
python-version: ['3.10'] # python-version: ['3.10']
steps: # steps:
- name: Login to Docker Registry # - name: Login to Docker Registry
uses: docker/login-action@v3 # uses: docker/login-action@v3
with: # with:
registry: gitea.technocloud.ee # registry: gitea.technocloud.ee
username: ${{ secrets.DOCKER_USERNAME }} # username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} # password: ${{ secrets.DOCKER_PASSWORD }}
#
- name: Set up Docker BuildX # - name: Set up Docker BuildX
uses: docker/setup-buildx-action@v3 # uses: docker/setup-buildx-action@v3
with: # with:
driver: docker-container # driver: docker-container
#
- name: Get Repository Metadata # - name: Get Repository Metadata
id: meta # id: meta
run: | # run: |
echo "REPO_NAME=${GITHUB_REPOSITORY}" >> $GITHUB_OUTPUT # echo "REPO_NAME=${GITHUB_REPOSITORY}" >> $GITHUB_OUTPUT
#
- name: Create and Push Multi-arch Manifest # - name: Create and Push Multi-arch Manifest
run: | # run: |
echo "LOL Privet from nginx unit" # echo "LOL Privet from nginx unit"
IMAGE_NAME=gitea.technocloud.ee/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:python${{ matrix.python-version }} # IMAGE_NAME=gitea.technocloud.ee/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:python${{ matrix.python-version }}
echo $IMAGE_NAME # echo $IMAGE_NAME
echo ${{ steps.meta.outputs }} # echo ${{ steps.meta.outputs }}
docker manifest create $IMAGE_NAME --amend gitea.technocloud.ee/technocloud-public/nginx-unit@sha256:3aabfbb49990a4f44a1b2a9c34c3a68b503b46fb5fdf30a8d520bc9c2a7e3558 # docker manifest create $IMAGE_NAME --amend gitea.technocloud.ee/technocloud-public/nginx-unit@sha256:3aabfbb49990a4f44a1b2a9c34c3a68b503b46fb5fdf30a8d520bc9c2a7e3558
echo "Vse rabotaet?" # echo "Vse rabotaet?"
docker manifest push $IMAGE_NAME # docker manifest push $IMAGE_NAME