Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinguy committed Jul 5, 2024
1 parent 230a568 commit d220102
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,20 @@ steps:
entrypoint: 'bash'
args: ['gcloud', 'auth', 'configure-docker']

# Step to authenticate with Azure Container Registry (ACR)
# Step to authenticate with Azure Container Registry (ACR) and get access token
- name: 'mcr.microsoft.com/azure-cli'
entrypoint: 'sh'
args:
- '-c'
- |
az login --service-principal -u ${_AZURE_CLIENT_ID} -p ${_AZURE_CLIENT_SECRET} --tenant ${_AZURE_TENANT_ID}
# Step to log in to ACR using Docker and the access token
- name: 'gcr.io/cloud-builders/docker'
entrypoint: 'sh'
args:
- '-c'
- |
docker login ${_AZURE_REGISTRY_NAME}.azurecr.io --username 00000000-0000-0000-0000-000000000000 --password ${_ACCESS_TOKEN}
# Steps to build and push Docker images for each service to GCR
Expand Down Expand Up @@ -117,5 +124,3 @@ substitutions:
_AZURE_CLIENT_SECRET: 'your-client-secret'
_AZURE_TENANT_ID: 'your-tenant-id'
_ACCESS_TOKEN: 'access-token'


0 comments on commit d220102

Please sign in to comment.