Skip to content

Commit

Permalink
Update pipeline.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
victorts1991 authored Mar 4, 2024
1 parent 075f583 commit 6963cd8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
aws-auth:
runs-on: ubuntu-latest
outputs:
output1: ${{ steps.login-ecr.outputs.registry }}
ecr_registry: ${{ steps.login-ecr.outputs.registry }}
steps:

- name: Configure AWS credentials
Expand All @@ -29,14 +29,15 @@ jobs:
needs: aws-auth

steps:
- env:
ECR_REGISTRY: ${{ needs.aws-auth.outputs.ecr_registry }}
ECR_REPOSITORY: fiap-tech-challenge-api
IMAGE_TAG: latest

- name: Check out code
uses: actions/checkout@v3

- name: Build, tag, and push image to Amazon ECR
env:
ECR_REGISTRY: ${{ needs.aws-auth.outputs.output1 }}
ECR_REPOSITORY: fiap-tech-challenge-api
IMAGE_TAG: latest
- name: Build, tag, and push image to Amazon ECR
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG

0 comments on commit 6963cd8

Please sign in to comment.