diff --git a/.github/workflows/example-build-docker.yml b/.github/workflows/example-build-docker.yml index ea8fc74..f5280f5 100644 --- a/.github/workflows/example-build-docker.yml +++ b/.github/workflows/example-build-docker.yml @@ -3,7 +3,7 @@ name: Build and Push Docker Image to ECR on: push: branches: - - example/pipeline # or specify any branch you want to trigger this workflow on + - example/pipeline-bebe # or specify any branch you want to trigger this workflow on jobs: build-and-push: @@ -19,13 +19,11 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - - name: Configure AWS credentials with session token + - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v2 with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-session-token: ${{ secrets.AWS_SESSION_TOKEN }} # Use the session token - aws-region: us-east-1 # Change to your AWS region + role-to-assume: arn:aws:iam::697698820969:role/GithubActionAssumeRole + aws-region: us-east-1 - name: Log in to Amazon ECR id: login-ecr @@ -33,8 +31,8 @@ jobs: - name: Build, tag, and push Docker image env: - ECR_URI: "778529894665.dkr.ecr.us-east-1.amazonaws.com/web-app" - IMAGE_TAG: latest + ECR_URI: "697698820969.dkr.ecr.us-east-1.amazonaws.com/web-app" + IMAGE_TAG: latest-beb run: | yarn --frozen-lockfile yarn nx build api-flowaccount-workshop