Skip to content

Commit 05234ae

Browse files
committed
gha: add ECR as registry to push images to
Signed-off-by: Ivo Jimenez <ivo.jimenez@gmail.com>
1 parent a5eda33 commit 05234ae

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/docker-image.yml

+9
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
# list of Docker images to use as base name for tags
3838
images: |
3939
redpandadata/kminion
40+
public.ecr.aws/l9j0i2e0/kminion
4041
# generate Docker tags based on the following events/attributes
4142
# Semver type is only active on 'push tag' events,
4243
# hence no enable condition required
@@ -47,6 +48,14 @@ jobs:
4748
with:
4849
username: ${{ env.DOCKERHUB_USER }}
4950
password: ${{ env.DOCKERHUB_TOKEN }}
51+
- uses: aws-actions/configure-aws-credentials@v4
52+
with:
53+
aws-region: us-east-1
54+
role-to-assume: arn:aws:iam::${{ secrets.RP_AWS_CRED_ACCOUNT_ID }}:role/${{ vars.RP_AWS_CRED_BASE_ROLE_NAME }}${{ github.event.repository.name }}
55+
- name: login to amazon ECR Public
56+
uses: aws-actions/amazon-ecr-login@v2
57+
with:
58+
registry-type: public
5059
- uses: docker/build-push-action@v6
5160
with:
5261
provenance: false

0 commit comments

Comments
 (0)