Adding publishing docker images to a public ECR registry

This commit is contained in:
Eric Allam
2023-06-27 09:40:36 +01:00
parent 6601f4c505
commit e0cd68787d
+10
View File
@@ -18,6 +18,9 @@ permissions:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
env:
AWS_REGION: us-east-1
jobs:
typecheck:
name: ʦ TypeScript
@@ -65,6 +68,7 @@ jobs:
images: |
${{ github.repository }}
ghcr.io/${{ github.repository }}
public.ecr.aws/i8g4o0p8/${{ github.event.repository.name }}
tags: |
type=ref,event=branch
type=ref,event=pr
@@ -87,6 +91,12 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: 🌐 Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::067435167850:role/GitHubAction-AssumeRoleWithAction
aws-region: ${{ env.AWS_REGION }}
- name: 🐳 Build and push
uses: docker/build-push-action@v4
with: