diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..d091563 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,31 @@ +name: Deploy Airflow + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup kubeconfig + run: | + mkdir -p ~/.kube + echo "${{ secrets.KUBECONFIG_HETZNER }}" | base64 -d > ~/.kube/config + + - name: Setup Helm + uses: azure/setup-helm@v4 + + - name: Deploy Airflow + run: | + helm repo add apache-airflow https://airflow.apache.org + helm repo update + helm upgrade --install airflow apache-airflow/airflow \ + --namespace airflow \ + --create-namespace \ + --values helm/airflow/values.yaml \ + --wait diff --git a/helm/airflow/values.yaml b/helm/airflow/values.yaml new file mode 100644 index 0000000..0f58ee9 --- /dev/null +++ b/helm/airflow/values.yaml @@ -0,0 +1 @@ +executor: KubernetesExecutor