Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
nevergiveup
Browse files Browse the repository at this point in the history
  • Loading branch information
yjm080821 committed Aug 26, 2024
1 parent 7c5847c commit 18f4f3c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/azure-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 18f4f3c

Please sign in to comment.