This commit is contained in:
parent
1860c52c31
commit
39246c9935
1 changed files with 16 additions and 16 deletions
|
@ -13,24 +13,24 @@ jobs:
|
|||
with:
|
||||
sparse-checkout: |
|
||||
non-lab
|
||||
- uses: https://code.lab.cowley.tech/homelab/forgejo-opentofu-runner@main
|
||||
# - name: Setup OpenTofu
|
||||
# run: |
|
||||
# curl -fsSl https://get.opentofu.org/install-opentofu.sh -o /tmp/install-opentofu.sh
|
||||
# chmod +x /tmp/install-opentofu.sh
|
||||
# /tmp/install-opentofu.sh --install-method deb
|
||||
# rm -f /tmp/install-opentofu.sh
|
||||
# #- uses: https://code.lab.cowley.tech/homelab/forgejo-opentofu-runner@main
|
||||
#- uses: https://code.lab.cowley.tech/homelab/forgejo-opentofu-runner@main
|
||||
- name: Setup OpenTofu
|
||||
run: |
|
||||
curl -fsSl https://get.opentofu.org/install-opentofu.sh -o /tmp/install-opentofu.sh
|
||||
chmod +x /tmp/install-opentofu.sh
|
||||
/tmp/install-opentofu.sh --install-method deb
|
||||
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 }}
|
||||
ls /usr/bin
|
||||
which tofu
|
||||
# - name: Tofu init
|
||||
# working-directory: ${{ github.workspace }}/non-lab
|
||||
# run: |
|
||||
# export KUBE_CONFIG_PATH="/tmp/kubeconfig"
|
||||
# echo ${{ secrets.KUBE_CONFIG_BASE64 }} | base64 -d > ${KUBE_CONFIG_PATH}
|
||||
# tofu init
|
||||
# - run: echo ${B2_APPLICATION_KEY_ID}
|
||||
- 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}
|
||||
tofu init
|
||||
|
|
Loading…
Add table
Reference in a new issue