ops: Add backoffice to api gateway #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Kong API Gateway | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy-kong: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v3 | |
| - name: Set Kubeconfig as Environment Variable | |
| run: | | |
| mkdir -p $HOME/.kube | |
| printf "%s" "${{ secrets.KUBE_CONFIG }}" | base64 --decode > $HOME/.kube/config | |
| export KUBECONFIG=$HOME/.kube/config | |
| chmod 600 $HOME/.kube/config | |
| echo "KUBECONFIG set." | |
| - name: Add Kong Helm Repo | |
| run: | | |
| helm repo add kong https://charts.konghq.com | |
| helm repo update | |
| - name: Deploy Kong with Helm | |
| run: | | |
| helm upgrade --install kong kong/kong \ | |
| --namespace kong \ | |
| --create-namespace \ | |
| --values helm/values.yaml | |
| - name: Apply Kong Plugin and Ingress Resources | |
| run: | | |
| kubectl apply -f k8s/ |