Helm Cert-Manager deployment #1
Workflow file for this run
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: Helm Cert-Manager deployment | |
on: | |
workflow_dispatch: | |
jobs: | |
helm_deploy: | |
name: "Deploy Cert-Manager" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
id: checkout_repo | |
uses: actions/checkout@v4 | |
- name: Login to Azure | |
id: login_to_azure | |
run: | | |
az login \ | |
--service-principal \ | |
-u ${{ secrets.AZURE_SERVICE_PRINCIPAL_APP_ID }} \ | |
-p ${{ secrets.AZURE_SERVICE_PRINCIPAL_SECRET }} \ | |
--tenant ${{ secrets.AZURE_TENANT_ID }} | |
- name: Get AKS credentials | |
id: get_aks_credentials | |
run: | | |
az aks get-credentials \ | |
--resource-group "rg${{ secrets.PROJECT }}main${{ secrets.INSTANCE }}" \ | |
--name "aks${{ secrets.PROJECT }}main${{ secrets.INSTANCE }}" \ | |
--overwrite-existing | |
- name: Install Helm | |
id: install_helm | |
uses: azure/setup-helm@v3 | |
with: | |
version: "v3.11.1" | |
- name: Deploy Helm chart | |
id: deploy_helm_chart | |
run: | | |
bash ./infra/helm/cert-manager/deploy.sh | |
- name: Logout of Azure | |
id: logout_from_azure | |
if: always() | |
run: | | |
az logout |