Skip to content

Commit 03029f8

Browse files
authored
feat: add kube environments as secrets
1 parent a0b2ae4 commit 03029f8

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/ci_k8_base.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,20 @@ on:
2323
required: true
2424
WF_KUBE_DOMAIN:
2525
required: true
26+
WF_KUBE_MIN_REPLICAS:
27+
required: true
28+
WF_KUBE_MAX_REPLICAS:
29+
required: true
30+
WF_KUBE_MEMORY_LIMIT:
31+
required: true
32+
WF_KUBE_MEMORY_REQUEST:
33+
required: true
34+
WF_KUBE_CPU_LIMIT:
35+
required: true
36+
WF_KUBE_CPU_REQUEST:
37+
required: true
38+
WF_KUBE_NODE_GROUP:
39+
required: true
2640

2741

2842
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
@@ -74,6 +88,13 @@ jobs:
7488
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
7589
ECR_REPOSITORY: '${{ secrets.WF_KUBE_NAME }}_${{ inputs.WF_ENV_TYPE}}_repo'
7690
VERSION_TAG: ${{ github.sha }}
91+
KUBE_MIN_REPLICAS: ${{ secrets.WF_KUBE_MIN_REPLICAS }}
92+
KUBE_MAX_REPLICAS: ${{ secrets.WF_KUBE_MAX_REPLICAS }}
93+
KUBE_MEMORY_LIMIT: ${{ secrets.WF_KUBE_MEMORY_LIMIT }}
94+
KUBE_MEMORY_REQUEST: ${{ secrets.WF_KUBE_MEMORY_REQUEST }}
95+
KUBE_CPU_LIMIT: ${{ secrets.WF_KUBE_CPU_LIMIT }}
96+
KUBE_CPU_REQUEST: ${{ secrets.WF_KUBE_CPU_REQUEST }}
97+
KUBE_NODE_GROUP: ${{ secrets.WF_KUBE_NODE_GROUP }}
7798
run: |
7899
export PATH=$PATH:$PWD
79100
echo "Replacing envs from kube manifests"

0 commit comments

Comments
 (0)