This commit is contained in:
Chris Cowley 2024-09-02 15:11:17 +02:00
parent 4be0e6511a
commit e7bf8fe429

View file

@ -13,23 +13,23 @@ jobs:
with: with:
sparse-checkout: | sparse-checkout: |
non-lab non-lab
# - name: Setup OpenTofu - name: Setup OpenTofu
# run: | run: |
# curl -fsSl https://get.opentofu.org/install-opentofu.sh -o /tmp/install-opentofu.sh curl -fsSl https://get.opentofu.org/install-opentofu.sh -o /tmp/install-opentofu.sh
# 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 #- uses: https://code.lab.cowley.tech/homelab/forgejo-opentofu-runner@main
- name: Setup Kubernetes client - name: Setup Kubernetes client
run: | run: |
export B2_APPLICATION_KEY=${{ secrets.B2_APPLICATION_KEY }} export B2_APPLICATION_KEY=${{ secrets.B2_APPLICATION_KEY }}
echo ${{ env.B2_APPLICATION_KEY_ID}} echo ${{ env.B2_APPLICATION_KEY_ID }}
which tofu which tofu
ls /usr/bin ls /usr/bin
- name: Tofu init # - name: Tofu init
working-directory: ${{ github.workspace }}/non-lab # working-directory: ${{ github.workspace }}/non-lab
run: | # run: |
export KUBE_CONFIG_PATH="/tmp/kubeconfig" # export KUBE_CONFIG_PATH="/tmp/kubeconfig"
echo ${{ secrets.KUBE_CONFIG_BASE64 }} | base64 -d > ${KUBE_CONFIG_PATH} # echo ${{ secrets.KUBE_CONFIG_BASE64 }} | base64 -d > ${KUBE_CONFIG_PATH}
tofu init # tofu init
- run: echo ${B2_APPLICATION_KEY_ID} # - run: echo ${B2_APPLICATION_KEY_ID}