Skip to content

Commit 1ec2773

Browse files
committed
add azure login and push
1 parent 0c9633e commit 1ec2773

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build-test-publish.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,17 @@ jobs:
417417
418418
BUILD_VERSION="${BASE_VERSION}-${SANITIZED_BRANCH}-${RUN_NUMBER}"
419419
echo "BUILD_VERSION=${BUILD_VERSION}" | tee -a $GITHUB_ENV $GITHUB_OUTPUT
420+
- id: login-azure
421+
name: Authenticate with Azure
422+
uses: azure/login@v2
423+
with:
424+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
425+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
426+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
427+
- name: Login to Azure Artifact Registry
428+
shell: bash
429+
run: |
430+
az acr login -n dataplanedeployment
420431
- id: login-gcp
421432
name: Authenticate with Google Cloud
422433
uses: google-github-actions/auth@v1
@@ -461,6 +472,7 @@ jobs:
461472
platforms: linux/amd64,linux/arm64
462473
tags: |
463474
609927696493.dkr.ecr.us-west-2.amazonaws.com/opentelemetry-collector-contrib:${{steps.create-version.outputs.BUILD_VERSION}}
475+
${{secrets.AAR_REPO_IMAGE}}:${{steps.create-version.outputs.BUILD_VERSION}}
464476
${{secrets.GCR_ASIA_IMAGE}}:${{steps.create-version.outputs.BUILD_VERSION}}
465477
${{secrets.GCR_EUROPE_IMAGE}}:${{steps.create-version.outputs.BUILD_VERSION}}
466478
${{secrets.GCR_US_IMAGE}}:${{steps.create-version.outputs.BUILD_VERSION}}

0 commit comments

Comments
 (0)