Skip to content

Commit

Permalink
Testing if env working
Browse files Browse the repository at this point in the history
  • Loading branch information
ris-tlp committed Feb 26, 2024
1 parent 53e10c4 commit 7f7b762
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ecrpush.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- name: Get ECR Repository URI
run: |
export REPOSITORY_NAME=$(aws ssm get-parameter --name "/config/observation-tracker/repository.name" --with-decryption --query Parameter.Value --output text)
echo $REPOSITORY_NAME
- name: Login to Amazon ECR
id: login-ecr-public
Expand All @@ -29,5 +30,7 @@ jobs:
IMAGE_TAG: '${{ github.sha }}'
working-directory: api/
run: |
echo $IMAGE_TAG
echo $ECR_REGISTRY
docker build -t $ECR_REGISTRY.dkr.ecr.us-east-1.amazonaws.com/$REPOSITORY_NAME .
docker push $ECR_REGISTRY.dkr.ecr.us-east-1.amazonaws.com/$REPOSITORY_NAME

0 comments on commit 7f7b762

Please sign in to comment.