Skip to content

Commit 5f6e8ff

Browse files
committed
fix: first deploy kongo with helm then configure
1 parent 2400661 commit 5f6e8ff

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,21 @@ jobs:
3737
run: |
3838
kubectl rollout status deployment/kong -n kong --timeout=180s
3939
40+
configure-kong:
41+
runs-on: ubuntu-latest
42+
needs: deploy-kong
43+
steps:
44+
- name: Checkout Repo
45+
uses: actions/checkout@v3
46+
47+
- name: Set Kubeconfig as Environment Variable
48+
run: |
49+
mkdir -p $HOME/.kube
50+
printf "%s" "${{ secrets.KUBE_CONFIG }}" | base64 --decode > $HOME/.kube/config
51+
export KUBECONFIG=$HOME/.kube/config
52+
chmod 600 $HOME/.kube/config
53+
echo "KUBECONFIG set."
54+
4055
- name: Apply Kong Plugin and Ingress Resources
4156
run: |
4257
kubectl apply -f k8s/
43-

0 commit comments

Comments
 (0)