Skip to content

Commit

Permalink
make REGISTRY env available for the make command
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladislav Volodkin committed Oct 17, 2023
1 parent 89b82f9 commit 928e349
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/container-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,17 @@ 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
GIT_TAG=$GITHUB_SHA
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

0 comments on commit 928e349

Please sign in to comment.