parent
39246c9935
commit
df95b251e4
1 changed files with 11 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue