terraform/.forgejo/workflows/non-lab.yml
Chris Cowley a79b835707
All checks were successful
/ non-lab (push) Successful in 38s
oops
2024-09-02 15:13:53 +02:00

35 lines
1.1 KiB
YAML

on:
push:
branches:
- 'main'
jobs:
non-lab:
runs-on: docker
#container:
# image: ghcr.io/opentofu/opentofu:1.7.2
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
non-lab
- 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 ${{ env.B2_APPLICATION_KEY_ID }}
which tofu
ls /usr/bin
# - 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}