Skip to content

az deploy CI

az deploy CI #3

Workflow file for this run

---
name: Deploy to AKS
on:
push:
branches:
- main
# OIDC token being allowed be generated
permissions:
id-token: write
contents: read
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Azure Login
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Azure CLI script
uses: azure/CLI@v1
with:
azcliversion: latest
inlineScript: |
az account show
#- name: Setup kubectl
# uses: azure/setup-kubectl@v3
# with:
# version: 'latest'
#- name: Setup Helm
# uses: azure/setup-helm@v3
# with:
# version: 'latest'
# token: ${{ secrets.GITHUB_TOKEN }}
#- name: Install tool for rendering templates
# run: |
# python3 -m pip install -r requirements.txt
#- name: Render values.yaml
# run: |
# jinja2 --format=env basehub/values.yaml.j2 > basehub/values.yaml
#- name: Update values.yaml
#- name: Connect to AKS
# run: az aks get-credentials --resource-group ${{ secrets.AZURE_RESOURCE_GROUP }} --name ${{ secrets.AZURE_KUBERNETES_CLUSTER }}
#- name: Deploy to AKS
# run: |
# ./deploy.sh
#- name: Logout of Azure
# run: az logout