From 4a4299a217afc75de85c36672d477dcc6f8713c2 Mon Sep 17 00:00:00 2001 From: Chris Kruining Date: Mon, 18 Nov 2024 08:13:32 +0100 Subject: [PATCH] why do I need an admin account?!?!?!?!? --- .github/workflows/app.yml | 10 ++-------- infrastructure/types.bicep | 4 ++++ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/app.yml b/.github/workflows/app.yml index d65ba30..7f51727 100644 --- a/.github/workflows/app.yml +++ b/.github/workflows/app.yml @@ -55,18 +55,12 @@ jobs: docker build . --file Dockerfile --tag ${{ secrets.ACR_LOGIN_SERVER }}/$IMAGE_NAME:${{needs.versionize.outputs.semver}} docker build . --file Dockerfile --tag ${{ secrets.ACR_LOGIN_SERVER }}/$IMAGE_NAME:latest - - name: Az CLI login - id: login - uses: azure/login@v2 - with: - client-id: ${{ secrets.CALQUE_PRD_CLIENT_ID }} - tenant-id: ${{ secrets.CALQUE_PRD_TENANT_ID }} - subscription-id: ${{ secrets.CALQUE_PRD_SUBSCRIPTION_ID }} - - name: Login to ACR uses: azure/docker-login@v2 with: login-server: ${{ secrets.ACR_LOGIN_SERVER }} + username: ${{ secrets.ACR_USERNAME }} + password: ${{ secrets.ACR_PASSWORD }} - name: Push container images working-directory: src diff --git a/infrastructure/types.bicep b/infrastructure/types.bicep index f892c3f..768ff80 100644 --- a/infrastructure/types.bicep +++ b/infrastructure/types.bicep @@ -1,8 +1,12 @@ @export() type Context = { + @minLength(2) locationAbbreviation: string + @minLength(2) location: string + @minLength(3) environment: string + @minLength(2) projectName: string deployedAt: string }