From 928e349e6045be45ce9161a573c337de43442661 Mon Sep 17 00:00:00 2001 From: Vladislav Volodkin Date: Tue, 17 Oct 2023 10:54:20 +0000 Subject: [PATCH] make REGISTRY env available for the make command --- .github/workflows/container-image.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/container-image.yaml b/.github/workflows/container-image.yaml index ccc87e3c..3b44abd7 100644 --- a/.github/workflows/container-image.yaml +++ b/.github/workflows/container-image.yaml @@ -39,7 +39,8 @@ jobs: uses: aws-actions/amazon-ecr-login@v2 - name: Build, tag, and push docker image to Amazon ECR Public Repository env: - REGISTRY: ${{ steps.login-ecr-public.outputs.registry }} + #REGISTRY: ${{ steps.login-ecr-public.outputs.registry }} + REGISTRY: ${{ steps.login-ecr.outputs.registry }} run: | BRANCH_OR_TAG=$(echo $GITHUB_REF | cut -d'/' -f3) if [ "$BRANCH_OR_TAG" = "main" ]; then @@ -47,8 +48,8 @@ jobs: else GIT_TAG=$BRANCH_OR_TAG fi + echo $REGISTRY export PLATFORM=linux/amd64 export TAG=$GIT_TAG - export REGISTRY=$REGISTRY make build_image make push_image