Skip to content

Commit

Permalink
Merge pull request #20 from cowienduckie/dev
Browse files Browse the repository at this point in the history
Install pipeline for Cert Manager
  • Loading branch information
cowienduckie authored Dec 9, 2023
2 parents 08cfddd + d11c33c commit ccfa59b
Show file tree
Hide file tree
Showing 13 changed files with 47 additions and 474 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/cert-manager.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Certificates Manager Pipeline

on:
workflow_dispatch:

push:
branches:
- main
paths:
- k8s/cert-manager.yaml
- .github/workflows/cert-manager.yml

jobs:
deploy:
name: Deploy Certificates Manager
runs-on: ubuntu-latest
env:
# Google Cloud variables
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
GOOGLE_PROJECT: ${{ secrets.GOOGLE_PROJECT }}
PROJECT_NAME: promag
REGION: us-central1
LOCATION: us-central1-a

# Kubernetes variables
CLUSTER_NAME: sit-cluster
NAMESPACE: prod
VALUES_FILE: cert-manager.yaml

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install the GCloud CLI
uses: google-github-actions/setup-gcloud@v0
with:
project_id: ${{ secrets.GOOGLE_PROJECT }}
service_account_key: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
install_components: 'gke-gcloud-auth-plugin'
export_default_credentials: true

- name: Apply changes
run: |
gcloud container clusters get-credentials $CLUSTER_NAME --location $LOCATION
kubectl apply -f k8s/$VALUES_FILE --namespace $NAMESPACE
1 change: 0 additions & 1 deletion k8s/cert-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ metadata:
spec:
domains:
- id.promag.minhtrandev.com
- graph.promag.minhtrandev.com
- gw.promag.minhtrandev.com
2 changes: 1 addition & 1 deletion k8s/charts/gateways/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ env:
- name: ASPNETCORE_ENVIRONMENT
value: Development
- name: PathBase
value: /
value: /gateway

- name: Logging__Seq__Enabled
value: 'true'
Expand Down
27 changes: 0 additions & 27 deletions k8s/charts/graph-gateway/.helmignore

This file was deleted.

5 changes: 0 additions & 5 deletions k8s/charts/graph-gateway/Chart.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions k8s/charts/graph-gateway/templates/NOTES.txt

This file was deleted.

45 changes: 0 additions & 45 deletions k8s/charts/graph-gateway/templates/_helpers.tpl

This file was deleted.

83 changes: 0 additions & 83 deletions k8s/charts/graph-gateway/templates/deployment.yaml

This file was deleted.

48 changes: 0 additions & 48 deletions k8s/charts/graph-gateway/templates/ingress.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions k8s/charts/graph-gateway/templates/service.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions k8s/charts/graph-gateway/templates/tests/test-connection.yaml

This file was deleted.

Loading

0 comments on commit ccfa59b

Please sign in to comment.