Skip to content

Commit be9a768

Browse files
committed
make docker registry also env var
1 parent 5502e9a commit be9a768

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/build-images.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ on:
3030
required: true
3131
default: 'latest'
3232
type: string
33+
docker_registry:
34+
description: 'Docker registry namespace (e.g., apache, myorg)'
35+
required: false
36+
default: 'apache'
37+
type: string
3338
services:
3439
description: 'Services to build (comma-separated, "*" for all)'
3540
required: false
@@ -55,7 +60,7 @@ concurrency:
5560
cancel-in-progress: false
5661

5762
env:
58-
DOCKER_REGISTRY: apache # Apache official Docker Hub repository
63+
DOCKER_REGISTRY: ${{ github.event.inputs.docker_registry }} # Docker registry namespace
5964

6065
jobs:
6166
# Step 1: Generate JOOQ code once and share it
@@ -447,6 +452,7 @@ jobs:
447452
echo "" >> $GITHUB_STEP_SUMMARY
448453
echo "## Build Configuration" >> $GITHUB_STEP_SUMMARY
449454
echo "- **Branch:** \`${{ github.event.inputs.branch }}\`" >> $GITHUB_STEP_SUMMARY
455+
echo "- **Registry:** \`${{ github.event.inputs.docker_registry }}\`" >> $GITHUB_STEP_SUMMARY
450456
echo "- **Tag:** \`${{ github.event.inputs.image_tag }}\`" >> $GITHUB_STEP_SUMMARY
451457
echo "- **Services:** ${{ github.event.inputs.services }}" >> $GITHUB_STEP_SUMMARY
452458
echo "- **Platforms:** ${{ github.event.inputs.platforms }}" >> $GITHUB_STEP_SUMMARY
@@ -463,7 +469,7 @@ jobs:
463469
echo "## Images Published" >> $GITHUB_STEP_SUMMARY
464470
echo "All images are now available as multi-arch manifests at:" >> $GITHUB_STEP_SUMMARY
465471
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
466-
echo "docker pull apache/texera/<service>:${{ github.event.inputs.image_tag }}" >> $GITHUB_STEP_SUMMARY
472+
echo "docker pull ${{ github.event.inputs.docker_registry }}/<service-name>:${{ github.event.inputs.image_tag }}" >> $GITHUB_STEP_SUMMARY
467473
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
468474
echo "" >> $GITHUB_STEP_SUMMARY
469475
echo "### Usage" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)