Skip to content

Commit 460f8c5

Browse files
committed
DNM: testing workflow changes
1 parent c766399 commit 460f8c5

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

.github/workflows/docker-image.yml

Lines changed: 5 additions & 13 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
@@ -14,13 +17,8 @@ jobs:
1417
steps:
1518
- uses: aws-actions/configure-aws-credentials@v4
1619
with:
17-
aws-region: ${{ vars.RP_AWS_CRED_REGION }}
20+
aws-region: us-east-1
1821
role-to-assume: arn:aws:iam::${{ secrets.RP_AWS_CRED_ACCOUNT_ID }}:role/${{ vars.RP_AWS_CRED_BASE_ROLE_NAME }}${{ github.event.repository.name }}
19-
- uses: aws-actions/aws-secretsmanager-get-secrets@v2
20-
with:
21-
secret-ids: |
22-
,sdlc/prod/github/dockerhub
23-
parse-json-secrets: true
2422
- uses: actions/checkout@v4
2523
- uses: docker/setup-qemu-action@v3
2624
- uses: docker/setup-buildx-action@v3
@@ -36,18 +34,12 @@ jobs:
3634
with:
3735
# list of Docker images to use as base name for tags
3836
images: |
39-
redpandadata/kminion
4037
public.ecr.aws/l9j0i2e0/kminion
4138
# generate Docker tags based on the following events/attributes
4239
# Semver type is only active on 'push tag' events,
4340
# hence no enable condition required
4441
tags: |
45-
type=sha,prefix={{branch}}-,format=short,enable={{is_default_branch}}
46-
type=semver,pattern={{raw}}
47-
- uses: docker/login-action@v3
48-
with:
49-
username: ${{ env.DOCKERHUB_USER }}
50-
password: ${{ env.DOCKERHUB_TOKEN }}
42+
type=ref,event=pr
5143
- name: login to amazon ECR Public
5244
uses: aws-actions/amazon-ecr-login@v2
5345
with:

0 commit comments

Comments
 (0)