feat: implements a new cluster configuration structure

This commit is contained in:
2025-11-07 17:31:43 -03:00
parent c5ed394bb9
commit bbe5420893
28 changed files with 289 additions and 1184 deletions

View File

@@ -16,15 +16,12 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Writing Env File
run: |
echo "${{ secrets.ENV_FILE }}" | base64 -d > .env
- name: Set Kubernetes Context
uses: azure/k8s-set-context@v1
with:
method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG }}
- name: Execute deploy
run: |
./deploy.sh -f .env
./deploy.sh

View File

@@ -1,36 +0,0 @@
name: workflow_02
on:
repository_dispatch:
types: [refresh-deployments]
jobs:
refresh_deployment:
name: Refresh Kubernetes Deployments
environment: prod
runs-on: ubuntu-latest
timeout-minutes: 30
env:
deployments: ${{ github.event.client_payload.deployments }}
steps:
- uses: actions/checkout@v4
- name: Writing Env File
run: |
echo "${{ secrets.ENV_FILE }}" | base64 -d > .env
- name: Set Kubernetes Context
uses: azure/k8s-set-context@v1
with:
method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG }}
- name: Refresh Deployments
if: ${{ env.deployments == '' }}
run: |
./deploy.sh -f .env -r
- name: Refresh Specific Deployments
if: ${{ env.deployments != '' }}
run: |
./deploy.sh -f .env -r ${{ env.deployments }}