Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jburns24 committed Sep 11, 2023
1 parent 7f57b2a commit c3a0e02
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/build-infra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,23 @@ jobs:
run: |
pwd
tree -dL 2
echo "ecr_arn=$(terragrunt output --json | jq .ecr_repository_arn.value -r)" >> $GITHUB_ENV
echo "ecr_repository_url=$(terragrunt output --json | jq .ecr_repository_url.value -r)" >> $GITHUB_ENV
working-directory: terraform

- name: Fetch ECS Repo Url
run: |
echo "${{ env.ecr_arn }}"
echo "${{ env.ecr_repository_url }}"
# Build docker image
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: user/app:latest
tags: ${{ env.ecr_repository_url }}:latest

0 comments on commit c3a0e02

Please sign in to comment.