Add plan
Some checks failed
/ non-lab (push) Failing after 58s

This commit is contained in:
Chris Cowley 2024-09-02 16:03:40 +02:00
parent 39246c9935
commit df95b251e4

View file

@ -22,15 +22,20 @@ jobs:
rm -f /tmp/install-opentofu.sh
#- uses: https://code.lab.cowley.tech/homelab/forgejo-opentofu-runner@main
- name: Setup Kubernetes client
run: |
export B2_APPLICATION_KEY=${{ secrets.B2_APPLICATION_KEY }}
echo ${{ secrets.B2_APPLICATION_KEY_ID }}
which tofu
- name: Tofu init
working-directory: ${{ github.workspace }}/non-lab
run: |
export KUBE_CONFIG_PATH="/tmp/kubeconfig"
export B2_APPLICATION_KEY_ID=${{ secrets.B2_APPLICATION_KEY_ID }}
export B2_APPLICATION_KEY=${{ secrets.B2_APPLICATION_KEY }}
echo ${{ secrets.KUBE_CONFIG_BASE64 }} | base64 -d > ${KUBE_CONFIG_PATH}
- name: Tofu init
working-directory: ${{ github.workspace }}/non-lab
run: |
tofu init
- name: Tofu Plan
working-directory: ${{ github.workspace }}/non-lab
run: |
tofu plan -out tfplan
- uses: actions/upload-artifact@v4
with:
name: plan
path: ${{ github.workspace }}/non-lab/tfplan