Skip to content

Commit

Permalink
Merge pull request #3 from victorts1991/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
victorts1991 authored Mar 4, 2024
2 parents 999256f + f720f1b commit de18ca3
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ on:

jobs:

build:

aws-auth:
runs-on: ubuntu-latest

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

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
Expand All @@ -24,10 +21,19 @@ jobs:
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

build:

runs-on: ubuntu-latest
needs: aws-auth

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

- name: Build, tag, and push image to Amazon ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REGISTRY: ${{ needs.aws-auth.login-ecr.outputs.registry }}
ECR_REPOSITORY: fiap-tech-challenge-api
IMAGE_TAG: latest
run: |
Expand Down

0 comments on commit de18ca3

Please sign in to comment.