Merge pull request #21 from tribofustack/docs/readme #78
This file contains 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: Apply | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
apply: | |
runs-on: ubuntu-latest | |
env: | |
GOOGLE_CREDENTIALS: ${{ secrets.CREDENTIALS }} | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
- name: Auth GCloud | |
uses: 'google-github-actions/[email protected]' | |
with: | |
credentials_json: ${{ secrets.CREDENTIALS }} | |
export_environment_variables: true | |
create_credentials_file: true | |
- name: Set up Cloud SDK | |
uses: 'google-github-actions/setup-gcloud@v2' | |
- name: Use gcloud CLI | |
run: gcloud container clusters list | |
- name: Setup Cluster Kubernetes | |
uses: 'google-github-actions/get-gke-credentials@v2' | |
with: | |
cluster_name: ${{ vars.CLUSTER_NAME }} | |
location: ${{ vars.ZONE }} | |
- name: Setup Namespace | |
run: | | |
kubectl apply -f namespaces.yaml | |
kubectl config set-context --current --namespace=orderly | |
- name: apply rabbitmq | |
working-directory: infra/rabbitmq/ | |
run: kubectl apply -f k8s/ | |
- name: apply API Gateway | |
working-directory: infra/kong/k8s/ | |
run: | | |
echo "$(cat configmap.yaml)" | envsubst | kubectl apply -f - | |
kubectl apply -f deployment.yaml | |
kubectl apply -f service.yaml | |
env: | |
TOKEN_SECRET: ${{ secrets.TOKEN_SECRET }} | |
- name: apply reverse-proxy | |
working-directory: infra/nginx/ | |
run: kubectl apply -f k8s/ | |
- name: get services | |
run: kubectl get svc -o wide |