diff --git a/.github/workflows/azure-dev.yml b/.github/workflows/azure-dev.yml index 47ca1c3..2f9bb33 100644 --- a/.github/workflows/azure-dev.yml +++ b/.github/workflows/azure-dev.yml @@ -20,6 +20,7 @@ jobs: AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }} AZURE_ENV_NAME: ${{ vars.AZURE_ENV_NAME }} AZURE_LOCATION: ${{ vars.AZURE_LOCATION }} + AZURE_CONTAINER_REGISTRY: ${{ vars.AZURE_CONTAINER_REGISTRY }} steps: - name: Checkout @@ -36,16 +37,19 @@ jobs: --tenant-id "$Env:AZURE_TENANT_ID" shell: pwsh + - name: Log in to Azure Container Registry + run: az acr login --name ${{ env.AZURE_CONTAINER_REGISTRY }} + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Build and Push Docker image for Client run: | - docker buildx build --platform linux/amd64 -f applications/client/Dockerfile -t ${{ vars.AZURE_CLIENT_ID }}/client:latest applications/client/ --push + docker buildx build --platform linux/amd64 -f applications/client/Dockerfile -t ${{ env.AZURE_CONTAINER_REGISTRY }}.azurecr.io/client:latest applications/client/ --push - name: Build and Push Docker image for Server run: | - docker buildx build --platform linux/amd64 -f applications/server/Dockerfile -t ${{ vars.AZURE_CLIENT_ID }}/server:latest applications/server/ --push + docker buildx build --platform linux/amd64 -f applications/server/Dockerfile -t ${{ env.AZURE_CONTAINER_REGISTRY }}.azurecr.io/server:latest applications/server/ --push - name: Provision Infrastructure run: azd provision --no-prompt