Skip to content

Commit

Permalink
Update action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
n-y-kim committed Mar 14, 2024
1 parent 87c0427 commit 908f8ae
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/app.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: frontend_build_deploy
name: Build Dockerfile & Push to ACR & Deploy to AKS
on:
workflow_dispatch:
push:
paths:
- "app/**"
Expand All @@ -14,11 +15,11 @@ jobs:
id: build-push-acr
uses: azure/acr-build@v1
with:
service_principal: ${{ secrets.service_principal }}
service_principal_password: ${{ secrets.service_principal_password }}
tenant: ${{ secrets.tenant }}
registry: ${{ secrets.registry }}
repository: ${{ secrets.repository }}
service_principal: ${{ secrets.SERVICE_PRINCIPAL }}
service_principal_password: ${{ secrets.SERVICE_PRINCIPAL_PASSWORD }}
tenant: ${{ secrets.TENANT }}
registry: ${{ secrets.REGISTRY }}
repository: ${{ secrets.REPOSITORY }}
image: chatbot-app
folder: app
branch: main
Expand All @@ -39,8 +40,8 @@ jobs:
id: set-context
uses: azure/aks-set-context@v3
with:
resource-group: '${{ secrets.resource_group }}'
cluster-name: '${{ secrets.cluster_name }}'
resource-group: '${{ secrets.RESOURCE_GROUP }}'
cluster-name: '${{ secrets.CLUSTER_NAME }}'

- name: Setup kubectl
id: install-kubectl
Expand All @@ -53,5 +54,5 @@ jobs:
namespace: 'default'
manifests: |
manifest/app.yaml
images: '${{ secrets.registry }}.azurecr.io/${{ secrets.repository }}/chatbot-app:${{ github.sha }}'
images: '${{ secrets.REGISTRY }}.azurecr.io/${{ secrets.REPOSITORY }}/chatbot-app:${{ github.sha }}'
pull-images: false

0 comments on commit 908f8ae

Please sign in to comment.