Deploy UI #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy UI | |
on: | |
workflow_dispatch: | |
workflow_run: | |
workflows: ["frontend-docker-build (amd64)"] | |
branches: ["main"] | |
types: | |
- completed | |
permissions: | |
id-token: write | |
contents: read | |
env: | |
IMAGE_NAME: multiwoven/multiwoven-ui | |
jobs: | |
deploy: | |
environment: community | |
runs-on: ["self-hosted","linux","x64"] | |
steps: | |
- uses: azure/[email protected] | |
with: | |
version: 'latest' | |
id: install | |
- name: Azure Login | |
uses: Azure/[email protected] | |
with: | |
creds: ${{ secrets.AZURE_CREDENTIALS }} | |
- name: Setup kubelogin | |
uses: azure/use-kubelogin@v1 | |
with: | |
kubelogin-version: 'v0.1.3' | |
- name: Gets K8s context | |
uses: azure/aks-set-context@v3 | |
with: | |
resource-group: ${{ vars.RESOURCE_GROUP }} | |
cluster-name: ${{ vars.CLUSTER_NAME }} | |
admin: 'false' | |
use-kubelogin: 'true' | |
- name: Deploy UI | |
env: | |
IMAGE_TAG: ${{ github.sha }} | |
run: | | |
helm repo add multiwoven https://multiwoven.github.io/helm-charts | |
helm upgrade -i --reuse-values multiwoven multiwoven/multiwoven \ | |
--set multiwovenConfig.appRevision=$IMAGE_TAG \ | |
--set multiwovenUI.multiwovenUI.image.repository=$IMAGE_NAME \ | |
--set multiwovenUI.multiwovenUI.image.tag=$IMAGE_TAG | |
kubectl rollout restart deployment/multiwoven-server -n multiwoven | |