From 8d68b04a609d54e544c52b79ec4ba06f51661e32 Mon Sep 17 00:00:00 2001
From: Pal Kerecsenyi <pal@p.kerecs.com>
Date: Tue, 2 Apr 2024 17:38:10 +0100
Subject: [PATCH] Remove reusable terraform workflow

---
 .../workflows/palcloud-terraform-deploy.yml   | 41 -------------------
 1 file changed, 41 deletions(-)
 delete mode 100644 .github/workflows/palcloud-terraform-deploy.yml

diff --git a/.github/workflows/palcloud-terraform-deploy.yml b/.github/workflows/palcloud-terraform-deploy.yml
deleted file mode 100644
index ba70b90..0000000
--- a/.github/workflows/palcloud-terraform-deploy.yml
+++ /dev/null
@@ -1,41 +0,0 @@
-on:
-  workflow_call:
-    inputs:
-      terraform-directory:
-        type: string
-        default: terraform
-      variable-map:
-        type: string
-        default: "{}"
-    secrets:
-      PALTIVERSE_K8S:
-        required: true
-      TAILSCALE_TOKEN:
-        required: true
-jobs:
-  deploy-palcloud-terraform:
-    runs-on: ubuntu-latest
-    container: alpine:3
-    env: ${{ fromJSON(inputs.variable-map) }}
-    steps:
-      - name: Install Alpine dependencies
-        run: apk add nodejs npm git
-      - name: Install Terraform
-        uses: https://gitea.palk.me/paltiverse/paltiverse-actions-setup-terraform@0.0.2
-      - name: Connect to Paltiverse and configure kubectl
-        uses: https://gitea.palk.me/paltiverse/paltiverse-actions-kubectl@1.0.3
-        id: kubectl
-        with:
-          tailscale-token: ${{ secrets.TAILSCALE_TOKEN }}
-          k8s-config: ${{ secrets.PALTIVERSE_K8S }}
-      - uses: actions/checkout@v4
-      - name: Initialise Terraform (download providers)
-        run: terraform init
-        working-directory: ${{ inputs.terraform-directory }}
-      - name: Apply Terraform plan
-        run: terraform apply -auto-approve -lock-timeout=30s
-        working-directory: ${{ inputs.terraform-directory }}
-        env:
-          HTTP_PROXY: ${{ steps.kubectl.outputs.http-proxy }}
-          HTTPS_PROXY: ${{ steps.kubectl.outputs.http-proxy }}
-          TF_VAR_kube_config_path: ${{ steps.kubectl.outputs.k8s-config-path }}