From 5471d10256e8c19cc493f558fd81428cbf52d89c Mon Sep 17 00:00:00 2001 From: Eugene Morozov Date: Tue, 10 Dec 2024 21:11:09 +0200 Subject: [PATCH] Test building by digest #6 --- .gitea/workflows/build.yml | 84 +++++++++++++++++++------------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index a74b6495..89f3eb6a 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -6,48 +6,48 @@ on: schedule: - cron: '@monthly' jobs: - build-amd64: - runs-on: linux_amd - name: Build AMD64 - container: - image: catthehacker/ubuntu:act-latest - env: - DOCKER_ORG: technocloud-public - RUNNER_TOOL_CACHE: /toolcache - strategy: - matrix: - python-version: ['3.10'] - outputs: - amd64-digest-${{ matrix.python-version }}: ${{ steps.build.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=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT - - name: Build and Push AMD64 - id: build - 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/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }},push-by-digest=true +# build-amd64: +# runs-on: linux_amd +# name: Build AMD64 +# container: +# image: catthehacker/ubuntu:act-latest +# env: +# DOCKER_ORG: technocloud-public +# RUNNER_TOOL_CACHE: /toolcache +# strategy: +# matrix: +# python-version: ['3.10'] +# outputs: +# amd64-digest-${{ matrix.python-version }}: ${{ steps.build.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=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT +# - name: Build and Push AMD64 +# id: build +# 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/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }},push-by-digest=true build-arm64: runs-on: ubuntu-latest