From ac394eefeabed8c689c308bd71d4c81b607026bd Mon Sep 17 00:00:00 2001 From: Gustavo Hidalgo Date: Mon, 1 Apr 2024 18:31:36 -0400 Subject: [PATCH] sudo the whole authenticate script --- .github/workflows/cicd.yml | 2 +- scripts/ciauthenticate | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 475f402e..e50eac00 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -32,7 +32,7 @@ jobs: env: CLIENT_ID: ${{ fromJSON(secrets.AZURE_CREDENTIALS).clientId }} CLIENT_SECRET: ${{ fromJSON(secrets.AZURE_CREDENTIALS).clientSecret }} - run: ./scripts/ciauthenticate + run: sudo ./scripts/ciauthenticate - name: Publish images run: ./scripts/cipublish --acr pcccr --tag ${{steps.get_image_tag.outputs.tag}} diff --git a/scripts/ciauthenticate b/scripts/ciauthenticate index 85658888..c19970b7 100755 --- a/scripts/ciauthenticate +++ b/scripts/ciauthenticate @@ -13,6 +13,6 @@ CI authentication for this project. " } -sudo curl -sL https://aka.ms/InstallAzureCLIDeb | bash +curl -sL https://aka.ms/InstallAzureCLIDeb | bash az acr login --name pcccr --username ${CLIENT_ID} --password ${CLIENT_SECRET} docker login pcccr.azurecr.io --username ${CLIENT_ID} --password ${CLIENT_SECRET} \ No newline at end of file