From 7dfc3f93be60367457381722ed8f798d787ffe8e Mon Sep 17 00:00:00 2001 From: danilapog Date: Thu, 14 Jul 2022 12:52:02 +0300 Subject: [PATCH] Print build-info before build start --- .github/workflows/4testing-build.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/4testing-build.yml b/.github/workflows/4testing-build.yml index 1c2a984..a968b58 100644 --- a/.github/workflows/4testing-build.yml +++ b/.github/workflows/4testing-build.yml @@ -75,26 +75,33 @@ jobs: fi ##### this setting up build platform #### if [[ "$AMD64" = "present" ]] && [[ "$ARM64" = "present" ]]; then - PLATFORM="linux/amd64,linux/arm64" - echo "Present arm64/amd64, build miltiarch" + PLATFORM="linux/amd64,linux/arm64" + echo "Present arm64/amd64, build miltiarch" fi if [[ "$AMD64" != "present" ]] && [[ "$ARM64" = "present" ]]; then - PLATFORM="linux/arm64" - echo "Present only arm64, build arm image" + PLATFORM="linux/arm64" + echo "Present only arm64, build arm image" fi if [[ "$AMD64" = "present" ]] && [[ "$ARM64" != "present" ]]; then - PLATFORM="linux/amd64" - echo "Present only amd64, build amd image" + PLATFORM="linux/amd64" + echo "Present only amd64, build amd image" fi if [[ "$AMD64" != "present" ]] && [[ "$ARM64" != "present" ]]; then - echo "FAILED: Build will not started requested architectures does not present" - exit 1 + echo "FAILED: Build will not started requested architectures does not present" + exit 1 fi + PRODUCT_EDITION=${{ matrix.edition }} COMPANY_NAME=${{ env.COMPANY_NAME }} \ + PRODUCT_NAME=${{ env.PRODUCT_NAME }} DOCKERFILE=Dockerfile \ + PREFIX_NAME=4testing- TAG=$DOCKER_TAG PLATFORM=$PLATFORM \ + docker buildx bake \ + -f docker-bake.hcl ${{ matrix.images }} \ + --print echo "Start build >>" + PRODUCT_EDITION=${{ matrix.edition }} COMPANY_NAME=${{ env.COMPANY_NAME }} \ PRODUCT_NAME=${{ env.PRODUCT_NAME }} DOCKERFILE=Dockerfile \ PREFIX_NAME=4testing- TAG=$DOCKER_TAG PLATFORM=$PLATFORM \