Skip to content

Commit

Permalink
Prepare deployments to TransIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Daanvm committed Dec 12, 2023
1 parent 19dde91 commit 3af34d9
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
on:
push:
branches:
- main
- transip

jobs:
install-ingress-and-cert-manager:
name: Install the ingress and cert-manager resources
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v3
- name: Checkout this repo
uses: actions/checkout@v4

- name: Install doctl
uses: digitalocean/action-doctl@v2
- uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.TRANSIP_KUBECONFIG_BASE64 }}
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}

- name: Save DigitalOcean kubeconfig with short-lived credentials
run: doctl kubernetes cluster kubeconfig save --expiry-seconds 600 k8s-daanvm
args: get pods

- name: Install helm
uses: azure/setup-helm@v3
Expand All @@ -41,9 +39,9 @@ jobs:
helm upgrade --install cert-manager jetstack/cert-manager --namespace cert-manager --version v1.7.1 --set installCRDs=true
kubectl apply -f cert-manager-letsencrypt.yaml
- name: Create kubernetes ingress
run: |
kubectl apply -f ingress.yaml
# - name: Create kubernetes ingress
# run: |
# kubectl apply -f ingress.yaml

- name: Get public loadbalancer IP address
run: kubectl get service nginx-ingress-ingress-nginx-controller -o=jsonpath='{.status.loadBalancer.ingress[*].ip}'
# - name: Get public loadbalancer IP address
# run: kubectl get service nginx-ingress-ingress-nginx-controller -o=jsonpath='{.status.loadBalancer.ingress[*].ip}'

0 comments on commit 3af34d9

Please sign in to comment.