From 3850d4b8ae300622be767068617e08fb6f12cb72 Mon Sep 17 00:00:00 2001
From: Rafael
Date: Mon, 20 Jan 2025 18:47:13 -0300
Subject: [PATCH 1/2] UPDATE: blank commit to force deployment
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index 028ca81..bb50d3a 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,7 @@
+
# Maestro
Maestro é a API principal da Dadosfera. É responsável pela comunicação do Frontend com nossos microsserviços.
From e55a1cb6573677faf6cb3ad5e5cb080b9b524f2d Mon Sep 17 00:00:00 2001
From: Rafael
Date: Mon, 20 Jan 2025 18:47:44 -0300
Subject: [PATCH 2/2] CI: removed deploy-k8s workflow
---
.github/workflows/deploy-k8s.yml | 73 --------------------------------
1 file changed, 73 deletions(-)
delete mode 100644 .github/workflows/deploy-k8s.yml
diff --git a/.github/workflows/deploy-k8s.yml b/.github/workflows/deploy-k8s.yml
deleted file mode 100644
index f547ac4..0000000
--- a/.github/workflows/deploy-k8s.yml
+++ /dev/null
@@ -1,73 +0,0 @@
-name: Deploy K8S Modifications
-
-on:
- push:
- branches:
- - main
- - beta
-
-jobs:
- extract_environment:
- runs-on: ubuntu-22.04
- outputs:
- environment: ${{ steps.extract_environment.outputs.environment }}
- steps:
- - name: Extract Environment
- run: |
- if [ ${GITHUB_REF} == "refs/heads/main" ]; then
- echo "environment=prd" >> $GITHUB_OUTPUT
- elif [ ${GITHUB_REF} == "refs/heads/beta" ]; then
- echo "environment=stg" >> $GITHUB_OUTPUT
- fi
- id: extract_environment
-
- helmfile-deploy:
- needs: [extract_environment]
- runs-on: [self-hosted, "prd-azure"]
-
- steps:
- - name: Checkout code
- uses: actions/checkout@v3
-
- - name: Set up Helm
- uses: azure/setup-helm@v1
- with:
- version: 'v3.9.0'
-
- - name: Install Azure ClI
- run: |
- curl -sL https://aka.ms/InstallAzureCLIDeb | bash
-
- - uses: azure/login@v2
- with:
- creds: '{"clientId":"${{ secrets.ARM_CLIENT_ID }}","clientSecret":"${{ secrets.ARM_CLIENT_SECRET }}","subscriptionId":"${{ secrets.ARM_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.ARM_TENANT_ID }}"}'
-
- - name: Set up Python
- uses: actions/setup-python@v4
- with:
- python-version: '3.8'
-
- - name: Install Helmfile
- run: |
- wget https://github.com/helmfile/helmfile/releases/download/v0.148.0/helmfile_0.148.0_linux_amd64.tar.gz
- tar -xzf helmfile_0.148.0_linux_amd64.tar.gz
- mv helmfile /usr/local/bin/
- helmfile --version
-
- - name: Install Helm Diff Plugin
- run: helm plugin install https://github.com/databus23/helm-diff || true
-
- - name: Setup kubectl
- uses: azure/setup-kubectl@v1
- with:
- version: 'v1.30.1'
-
- - name: Authenticate with cluster
- env:
- CLUSTER_NAME: platform-${{ needs.extract_environment.outputs.environment }}
- run: az aks get-credentials --resource-group dadosfera-prd --name ${CLUSTER_NAME} --overwrite-existing
-
- - name: Run Helmfile Apply
- env:
- ENV: ${{ needs.extract_environment.outputs.environment }}
- run: helmfile -f helmfiles/${ENV}.yaml sync