This commit is contained in:
parent
9f1fd99fde
commit
a3fde6f3b8
1 changed files with 12 additions and 11 deletions
|
@ -20,13 +20,6 @@ jobs:
|
||||||
chmod +x /tmp/install-opentofu.sh
|
chmod +x /tmp/install-opentofu.sh
|
||||||
/tmp/install-opentofu.sh --install-method deb
|
/tmp/install-opentofu.sh --install-method deb
|
||||||
rm -f /tmp/install-opentofu.sh
|
rm -f /tmp/install-opentofu.sh
|
||||||
#- uses: https://code.lab.cowley.tech/homelab/forgejo-opentofu-runner@main
|
|
||||||
# - name: Setup Kubernetes client
|
|
||||||
# run: |
|
|
||||||
# export KUBE_CONFIG_PATH="/tmp/kubeconfig"
|
|
||||||
# echo ${{ secrets.KUBE_CONFIG_BASE64 }} | base64 -d > ${KUBE_CONFIG_PATH}
|
|
||||||
# export B2_APPLICATION_KEY_ID=${{ secrets.B2_APPLICATION_KEY_ID }}
|
|
||||||
# export B2_APPLICATION_KEY=${{ secrets.B2_APPLICATION_KEY }}
|
|
||||||
- name: Tofu init
|
- name: Tofu init
|
||||||
working-directory: ${{ github.workspace }}/non-lab
|
working-directory: ${{ github.workspace }}/non-lab
|
||||||
run: |
|
run: |
|
||||||
|
@ -43,7 +36,15 @@ jobs:
|
||||||
export B2_APPLICATION_KEY_ID=${{ secrets.B2_APPLICATION_KEY_ID }}
|
export B2_APPLICATION_KEY_ID=${{ secrets.B2_APPLICATION_KEY_ID }}
|
||||||
export B2_APPLICATION_KEY=${{ secrets.B2_APPLICATION_KEY }}
|
export B2_APPLICATION_KEY=${{ secrets.B2_APPLICATION_KEY }}
|
||||||
tofu plan -out tfplan
|
tofu plan -out tfplan
|
||||||
- uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
#- uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||||
with:
|
# with:
|
||||||
name: plan
|
# name: plan
|
||||||
path: ${{ github.workspace }}/non-lab/tfplan
|
# path: ${{ github.workspace }}/non-lab/tfplan
|
||||||
|
- name: Tofu Apply
|
||||||
|
working-directory: ${{ github.workspace }}/non-lab
|
||||||
|
run: |
|
||||||
|
export KUBE_CONFIG_PATH="/tmp/kubeconfig"
|
||||||
|
echo ${{ secrets.KUBE_CONFIG_BASE64 }} | base64 -d > ${KUBE_CONFIG_PATH}
|
||||||
|
export B2_APPLICATION_KEY_ID=${{ secrets.B2_APPLICATION_KEY_ID }}
|
||||||
|
export B2_APPLICATION_KEY=${{ secrets.B2_APPLICATION_KEY }}
|
||||||
|
ls -la
|
||||||
|
|
Loading…
Add table
Reference in a new issue