terraform/.forgejo/workflows/non-lab.yml
Chris Cowley f6c18c6955
Some checks failed
/ non-lab (push) Failing after 39s
hmm
2024-09-02 11:41:21 +02:00

30 lines
933 B
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
- 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=${{ secrets.B2_APPLICATION_KEY }}
- name: Tofu init
working-directory: ${{ github.workspace }}/non-lab
run: tofu init
- run: echo ${B2_APPLICATION_KEY_ID}