From 53da91cdfe26ae1562083d44231c9a40e8174e97 Mon Sep 17 00:00:00 2001 From: Gustavo Hidalgo Date: Mon, 1 Apr 2024 19:02:36 -0400 Subject: [PATCH] use AzCLI mechanisms --- .github/workflows/cicd.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 3302e815..e4ae2c4b 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -19,10 +19,13 @@ jobs: creds: '${{ secrets.AZURE_CREDENTIALS }}' - name: Authenticate + uses: azure/cli@v2 env: CLIENT_ID: ${{ fromJSON(secrets.AZURE_CREDENTIALS).clientId }} CLIENT_SECRET: ${{ fromJSON(secrets.AZURE_CREDENTIALS).clientSecret }} - run: sudo ./scripts/ciauthenticate + with: + inlineScript: | + ./scripts/ciauthenticate - name: Run cibuild run: ./scripts/cibuild @@ -40,7 +43,10 @@ jobs: esac - name: Publish images - run: ./scripts/cipublish --acr pcccr --tag ${{steps.get_image_tag.outputs.tag}} + uses: azure/cli@v2 + with: + inlineScript: | + ./scripts/cipublish --acr pcccr --tag ${{steps.get_image_tag.outputs.tag}} outputs: image_tag: ${{ steps.get_image_tag.outputs.tag }}