feat: implements a new cluster configuration structure
This commit is contained in:
@@ -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
|
||||
36
.github/workflows/refresh-deployment.yml
vendored
36
.github/workflows/refresh-deployment.yml
vendored
@@ -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 }}
|
||||
Reference in New Issue
Block a user