Skip to content

Commit

Permalink
💚 Fix CI yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aliberts committed Nov 24, 2023
1 parent d544c0a commit cb4a81e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ jobs:
- name: Configure aws credentials
uses: aws-actions/[email protected]
with:
role-to-assume: ${{ IAM_ROLE_ARN }}
role-to-assume: ${{ secrets.IAM_ROLE_ARN }}
role-session-name: GitHub_to_AWS_via_FederatedOIDC
aws-region: "eu-west-3"
- name: Build, tag, and push image to Amazon ECR
run: |
docker build --platform linux/amd64 -t ${{ ECR_REGISTRY }}/inews:latest .
docker push ${{ ECR_REGISTRY }}/inews:latest
docker build --platform linux/amd64 -t ${{ secrets.ECR_REGISTRY }}/inews:latest .
docker push ${{ secrets.ECR_REGISTRY }}/inews:latest
aws lambda update-function-code \
--function-name inews \
--image-uri ${{ ECR_REGISTRY }}/inews:latest > /dev/null
--image-uri ${{ secrets.ECR_REGISTRY }}/inews:latest > /dev/null

0 comments on commit cb4a81e

Please sign in to comment.