Move to environment #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code Mirror | |
on: [push] | |
permissions: | |
id-token: write # Permission to fetch OIDC token | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: code_mirror | |
steps: | |
# Checkout the repo | |
- uses: actions/checkout@main | |
- uses: azure/login@v1 | |
with: | |
client-id: ${{ secrets.CODE_MIRROR_CLIENT_ID }} | |
tenant-id: ${{ secrets.CODE_MIRROR_TENANT_ID }} | |
subscription-id: ${{ secrets.CODE_MIRROR_SUBSCRIPTION_ID }} | |
# Queue a code mirror build in azure devops | |
- name: Queue a build | |
run: | | |
az pipelines build queue --definition-id 16 --project internal --org dnceng --variables BranchToMirror=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} GitHubRepo=${{ github.repository_owner }}/${{ github.repository }} | |
- name: logout | |
run: | | |
az logout |