Skip to content

Commit

Permalink
fix: update mcr publishing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhiying Lin committed Apr 25, 2024
1 parent 9bfcda5 commit b1759b1
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/build-publish-mcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ jobs:
# from AZURE_REGISTRY secret is not exported from here.
publish-images:
runs-on: ubuntu-latest
runs-on:
labels: [ self-hosted, "1ES.Pool=1es-aks-fleet-networking-pool-ubuntu" ]
needs: prepare-variables
steps:
- name: Set up Go ${{ env.GO_VERSION }}
Expand All @@ -53,15 +54,10 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ needs.prepare-variables.outputs.release_tag }}
# reference: https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-azure
- name: 'OIDC Login to Azure Public Cloud'
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: 'Login the ACR'
run: az acr login -n ${{ secrets.AZURE_REGISTRY }}
run: |
az login --identity
az acr login -n ${{ secrets.AZURE_REGISTRY }}
- name: Build and publish controller manager images
run: |
make push
Expand Down

0 comments on commit b1759b1

Please sign in to comment.