Skip to content

Commit 11d1c7a

Browse files
committed
DNM
1 parent c766399 commit 11d1c7a

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/docker-image.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags: ['*']
66
branches: ['master']
77
paths-ignore: ['charts/**']
8+
pull_request:
9+
paths:
10+
- '.github/workflows/docker-image.yml'
811
permissions:
912
id-token: write
1013
contents: read
@@ -36,18 +39,16 @@ jobs:
3639
with:
3740
# list of Docker images to use as base name for tags
3841
images: |
39-
redpandadata/kminion
4042
public.ecr.aws/l9j0i2e0/kminion
4143
# generate Docker tags based on the following events/attributes
4244
# Semver type is only active on 'push tag' events,
4345
# hence no enable condition required
4446
tags: |
45-
type=sha,prefix={{branch}}-,format=short,enable={{is_default_branch}}
46-
type=semver,pattern={{raw}}
47-
- uses: docker/login-action@v3
47+
type=ref,event=pr
48+
- uses: aws-actions/configure-aws-credentials@v4
4849
with:
49-
username: ${{ env.DOCKERHUB_USER }}
50-
password: ${{ env.DOCKERHUB_TOKEN }}
50+
aws-region: us-east-1
51+
role-to-assume: arn:aws:iam::${{ secrets.RP_AWS_CRED_ACCOUNT_ID }}:role/${{ vars.RP_AWS_CRED_BASE_ROLE_NAME }}${{ github.event.repository.name }}
5152
- name: login to amazon ECR Public
5253
uses: aws-actions/amazon-ecr-login@v2
5354
with:

0 commit comments

Comments
 (0)