From 3af34d95fb42b4d1a3820cafedce99cf3f570e37 Mon Sep 17 00:00:00 2001 From: Daan van Marsbergen Date: Wed, 13 Dec 2023 00:09:07 +0100 Subject: [PATCH] Prepare deployments to TransIP --- .github/workflows/deploy.yaml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index d064253..192e3b6 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -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 @@ -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}'