Skip to content

Commit e0cd687

Browse files
committed
Adding publishing docker images to a public ECR registry
1 parent 6601f4c commit e0cd687

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ permissions:
1818
concurrency:
1919
group: ${{ github.workflow }}-${{ github.ref }}
2020

21+
env:
22+
AWS_REGION: us-east-1
23+
2124
jobs:
2225
typecheck:
2326
name: ʦ TypeScript
@@ -65,6 +68,7 @@ jobs:
6568
images: |
6669
${{ github.repository }}
6770
ghcr.io/${{ github.repository }}
71+
public.ecr.aws/i8g4o0p8/${{ github.event.repository.name }}
6872
tags: |
6973
type=ref,event=branch
7074
type=ref,event=pr
@@ -87,6 +91,12 @@ jobs:
8791
username: ${{ github.repository_owner }}
8892
password: ${{ secrets.GITHUB_TOKEN }}
8993

94+
- name: 🌐 Configure AWS credentials
95+
uses: aws-actions/configure-aws-credentials@v2
96+
with:
97+
role-to-assume: arn:aws:iam::067435167850:role/GitHubAction-AssumeRoleWithAction
98+
aws-region: ${{ env.AWS_REGION }}
99+
90100
- name: 🐳 Build and push
91101
uses: docker/build-push-action@v4
92102
with:

0 commit comments

Comments
 (0)