Skip to content

Commit 7658e09

Browse files
dislbennclaude
andauthored
Add staging registry authentication to mirror workflow (#1918)
* Add staging registry authentication to mirror workflow Adds skopeo login for registry.stage.redhat.io to support resolving staging image references in the mirror external images workflow. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * Add staging registry to bundle generation workflow Also adds registry.stage.redhat.io authentication to the gen-bundle-contents workflow to ensure staging image references can be resolved during bundle generation. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent b6dd733 commit 7658e09

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/gen-bundle-contents-when-triggered.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ jobs:
102102
echo "${{ secrets.REGISTRY_REDHAT_IO_RGY_PASSWORD }}" \
103103
| docker login -u="${{ vars.REGISTRY_REDHAT_IO_RGY_USERNAME }}" --password-stdin registry.redhat.io
104104
105+
# Access to registry.stage.redhat.io needed to resolve staging image references:
106+
echo "Doing Docker login to registry.stage.redhat.io"
107+
echo "${{ secrets.REGISTRY_STAGE_REDHAT_IO_RGY_PASSWORD }}" \
108+
| docker login -u="${{ vars.REGISTRY_STAGE_REDHAT_IO_RGY_USERNAME }}" --password-stdin registry.stage.redhat.io
109+
105110
# Access to quay.iio/acm-d needed to resolve external image references (in-dev images):
106111
echo "Doing Docker login to quay.io (for acm-d)"
107112
echo "${{ secrets.QUAY_IO_ACMD_RGY_PASSWORD }}" \

.github/workflows/mirror-external-images-workflow.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ name: Mirror External Images
1212
# 5. If secrets are compromised, rotate immediately:
1313
# - TOOLS_REPO_READER_PRIVATE_KEY
1414
# - REGISTRY_REDHAT_IO_RGY_PASSWORD
15+
# - REGISTRY_STAGE_REDHAT_IO_RGY_PASSWORD
1516
# - QUAY_IO_ACMD_RGY_PASSWORD
1617
# - SLACK_WEBHOOK_URL
1718

@@ -136,6 +137,11 @@ jobs:
136137
echo "${{ secrets.REGISTRY_REDHAT_IO_RGY_PASSWORD }}" \
137138
| skopeo login -u="${{ vars.REGISTRY_REDHAT_IO_RGY_USERNAME }}" --password-stdin registry.redhat.io
138139
140+
# Access to registry.stage.redhat.io needed to resolve staging image references:
141+
echo "Doing skopeo login to registry.stage.redhat.io"
142+
echo "${{ secrets.REGISTRY_STAGE_REDHAT_IO_RGY_PASSWORD }}" \
143+
| skopeo login -u="${{ vars.REGISTRY_STAGE_REDHAT_IO_RGY_USERNAME }}" --password-stdin registry.stage.redhat.io
144+
139145
# Access to quay.io/acm-d needed to resolve external image references (in-dev images):
140146
echo "Doing skopeo login to quay.io (for acm-d)"
141147
echo "${{ secrets.QUAY_IO_ACMD_RGY_PASSWORD }}" \

0 commit comments

Comments
 (0)