Skip to content

Commit 1cba809

Browse files
authored
Make Docker-repository overridable by input (#19)
1 parent 1f8b984 commit 1cba809

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/cluster-docker-build-tag-push.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ on:
4141
type: string
4242
description: "Full path to the image (gcr.io/my/image)"
4343
required: true
44+
image_repository:
45+
type: string
46+
description: "Docker image repository name in GAR: amp = images hosted in cluster; dev = dev env and test images"
47+
default: amp
4448
workload_identity_provider:
4549
type: string
4650
description: "Workload identity federation provider"
@@ -122,7 +126,7 @@ jobs:
122126
run: |
123127
{
124128
echo 'images<<EOF'
125-
echo ${{ inputs.image }} | sed -E 's#(gcr.io/atb-mobility-platform)/(.*)#europe-west1-docker.pkg.dev/amp-artifacts/amp/\2#g'
129+
echo ${{ inputs.image }} | sed -E 's#(gcr.io/atb-mobility-platform)/(.*)#europe-west1-docker.pkg.dev/amp-artifacts/${{ inputs.image_repository }}/\2#g'
126130
echo EOF
127131
} >> "$GITHUB_OUTPUT"
128132
- name: Docker meta

0 commit comments

Comments
 (0)