5252 dockerhub-oidc-connection-id :
5353 description : " Docker Hub OIDC connection ID"
5454 value : ${{ jobs.setup-registry-identities.outputs.dockerhub-oidc-connection-id }}
55+ azure-acr-enabled :
56+ description : " Whether an Azure ACR registry identity was configured"
57+ value : ${{ jobs.setup-registry-identities.outputs.azure-acr-enabled }}
58+ azure-acr-registry :
59+ description : " Azure Container Registry host"
60+ value : ${{ jobs.setup-registry-identities.outputs.azure-acr-registry }}
61+ azure-acr-client-id :
62+ description : " Azure federated identity client ID"
63+ value : ${{ jobs.setup-registry-identities.outputs.azure-acr-client-id }}
64+ azure-acr-tenant-id :
65+ description : " Azure tenant ID"
66+ value : ${{ jobs.setup-registry-identities.outputs.azure-acr-tenant-id }}
67+ azure-acr-subscription-id :
68+ description : " Azure subscription ID"
69+ value : ${{ jobs.setup-registry-identities.outputs.azure-acr-subscription-id }}
70+ chainguard-enabled :
71+ description : " Whether a Chainguard registry identity was configured"
72+ value : ${{ jobs.setup-registry-identities.outputs.chainguard-enabled }}
73+ chainguard-identity :
74+ description : " Chainguard identity to assume"
75+ value : ${{ jobs.setup-registry-identities.outputs.chainguard-identity }}
76+ chainguard-apk-host :
77+ description : " Chainguard APK host"
78+ value : ${{ jobs.setup-registry-identities.outputs.chainguard-apk-host }}
79+ chainguard-libraries-host :
80+ description : " Chainguard Libraries host"
81+ value : ${{ jobs.setup-registry-identities.outputs.chainguard-libraries-host }}
5582
5683env :
5784 RUNTIME_MODULE : " @docker/github-builder-runtime@0.102.0"
@@ -83,6 +110,15 @@ jobs:
83110 dockerhub-oidc-registry : ${{ steps.validate.outputs.dockerhub-oidc-registry }}
84111 dockerhub-oidc-username : ${{ steps.validate.outputs.dockerhub-oidc-username }}
85112 dockerhub-oidc-connection-id : ${{ steps.validate.outputs.dockerhub-oidc-connection-id }}
113+ azure-acr-enabled : ${{ steps.validate.outputs.azure-acr-enabled }}
114+ azure-acr-registry : ${{ steps.validate.outputs.azure-acr-registry }}
115+ azure-acr-client-id : ${{ steps.validate.outputs.azure-acr-client-id }}
116+ azure-acr-tenant-id : ${{ steps.validate.outputs.azure-acr-tenant-id }}
117+ azure-acr-subscription-id : ${{ steps.validate.outputs.azure-acr-subscription-id }}
118+ chainguard-enabled : ${{ steps.validate.outputs.chainguard-enabled }}
119+ chainguard-identity : ${{ steps.validate.outputs.chainguard-identity }}
120+ chainguard-apk-host : ${{ steps.validate.outputs.chainguard-apk-host }}
121+ chainguard-libraries-host : ${{ steps.validate.outputs.chainguard-libraries-host }}
86122 steps :
87123 -
88124 name : Install dependencies
@@ -145,6 +181,15 @@ jobs:
145181 core.setOutput('dockerhub-oidc-registry', '');
146182 core.setOutput('dockerhub-oidc-username', '');
147183 core.setOutput('dockerhub-oidc-connection-id', '');
184+ core.setOutput('azure-acr-enabled', 'false');
185+ core.setOutput('azure-acr-registry', '');
186+ core.setOutput('azure-acr-client-id', '');
187+ core.setOutput('azure-acr-tenant-id', '');
188+ core.setOutput('azure-acr-subscription-id', '');
189+ core.setOutput('chainguard-enabled', 'false');
190+ core.setOutput('chainguard-identity', '');
191+ core.setOutput('chainguard-apk-host', '');
192+ core.setOutput('chainguard-libraries-host', '');
148193 };
149194
150195 const registryLogin = core.getBooleanInput('registry-login');
@@ -164,7 +209,7 @@ jobs:
164209 const { RegistryIdentities } = require('@docker/github-builder-runtime/lib/github-builder/registry-identities');
165210
166211 try {
167- const { awsEcr, gcpWif, dockerhubOidc } = RegistryIdentities.parse(registryIdentities);
212+ const { awsEcr, gcpWif, dockerhubOidc, azureAcr, chainguard } = RegistryIdentities.parse(registryIdentities);
168213 if (awsEcr) {
169214 core.info(`Configured aws-ecr registry identity for ${awsEcr.registry}`);
170215 }
@@ -174,6 +219,12 @@ jobs:
174219 if (dockerhubOidc) {
175220 core.info(`Configured dockerhub registry identity for ${dockerhubOidc.registry}`);
176221 }
222+ if (azureAcr) {
223+ core.info(`Configured azure-acr registry identity for ${azureAcr.registry}`);
224+ }
225+ if (chainguard) {
226+ core.info(`Configured chainguard registry identity ${chainguard.identity}`);
227+ }
177228
178229 core.setOutput('aws-ecr-enabled', awsEcr ? 'true' : 'false');
179230 core.setOutput('aws-ecr-registry', awsEcr?.registry || '');
@@ -188,6 +239,15 @@ jobs:
188239 core.setOutput('dockerhub-oidc-registry', dockerhubOidc?.registry || '');
189240 core.setOutput('dockerhub-oidc-username', dockerhubOidc?.username || '');
190241 core.setOutput('dockerhub-oidc-connection-id', dockerhubOidc?.connectionID || '');
242+ core.setOutput('azure-acr-enabled', azureAcr ? 'true' : 'false');
243+ core.setOutput('azure-acr-registry', azureAcr?.registry || '');
244+ core.setOutput('azure-acr-client-id', azureAcr?.clientId || '');
245+ core.setOutput('azure-acr-tenant-id', azureAcr?.tenantId || '');
246+ core.setOutput('azure-acr-subscription-id', azureAcr?.subscriptionId || '');
247+ core.setOutput('chainguard-enabled', chainguard ? 'true' : 'false');
248+ core.setOutput('chainguard-identity', chainguard?.identity || '');
249+ core.setOutput('chainguard-apk-host', chainguard?.apkHost || '');
250+ core.setOutput('chainguard-libraries-host', chainguard?.librariesHost || '');
191251 } catch (error) {
192252 core.setFailed(error.message || error);
193253 }
0 commit comments