Skip to content

Commit

Permalink
add azure login and push (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
siyegen committed Aug 1, 2024
1 parent 0c9633e commit 1a6df98
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build-test-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,17 @@ jobs:
BUILD_VERSION="${BASE_VERSION}-${SANITIZED_BRANCH}-${RUN_NUMBER}"
echo "BUILD_VERSION=${BUILD_VERSION}" | tee -a $GITHUB_ENV $GITHUB_OUTPUT
- id: login-azure
name: Authenticate with Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Login to Azure Artifact Registry
shell: bash
run: |
az acr login -n dataplanedeployment
- id: login-gcp
name: Authenticate with Google Cloud
uses: google-github-actions/auth@v1
Expand Down Expand Up @@ -461,6 +472,7 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: |
609927696493.dkr.ecr.us-west-2.amazonaws.com/opentelemetry-collector-contrib:${{steps.create-version.outputs.BUILD_VERSION}}
${{secrets.AAR_REPO_IMAGE}}:${{steps.create-version.outputs.BUILD_VERSION}}
${{secrets.GCR_ASIA_IMAGE}}:${{steps.create-version.outputs.BUILD_VERSION}}
${{secrets.GCR_EUROPE_IMAGE}}:${{steps.create-version.outputs.BUILD_VERSION}}
${{secrets.GCR_US_IMAGE}}:${{steps.create-version.outputs.BUILD_VERSION}}

0 comments on commit 1a6df98

Please sign in to comment.