Skip to content

Commit 0fc44b7

Browse files
authored
Merge pull request #289 from redpanda-data/add-ecr-repo
gha: add ECR as registry to push images to
2 parents a5eda33 + 7bc3562 commit 0fc44b7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 8 additions & 0 deletions
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,13 @@ 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+
- uses: aws-actions/amazon-ecr-login@v2
56+
with:
57+
registry-type: public
5058
- uses: docker/build-push-action@v6
5159
with:
5260
provenance: false

0 commit comments

Comments
 (0)