Legacy id check (#12) #9
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: Build and push to ACR | |
on: | |
push: | |
branches: ['release'] | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout GitHub Action' | |
uses: actions/checkout@v3 | |
- name: 'Login via Azure CLI' | |
uses: azure/login@v1 | |
with: | |
client-id: ${{ secrets.AZURE_CLIENT_ID }} | |
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
- name: Build and push image | |
id: build-image | |
run: | | |
az acr build --image ${{ secrets.REGISTRY_LOGIN_SERVER }}/uniformdatasetdotnetapi:release --registry ${{ secrets.REGISTRY_LOGIN_SERVER }} --file src/UDS.Net.API/Dockerfile src/ |