terraform/.forgejo/workflows/non-lab.yml

37 lines
1.2 KiB
YAML
Raw Normal View History

2024-09-02 11:20:23 +02:00
on:
push:
branches:
- 'main'
2024-09-02 08:44:17 +00:00
2024-09-02 10:32:51 +02:00
jobs:
2024-09-02 10:50:35 +02:00
non-lab:
2024-09-02 10:32:51 +02:00
runs-on: docker
2024-09-02 09:00:46 +00:00
#container:
# image: ghcr.io/opentofu/opentofu:1.7.2
2024-09-02 10:32:51 +02:00
steps:
2024-09-02 10:56:38 +02:00
- uses: actions/checkout@v4
with:
sparse-checkout: |
non-lab
2024-09-02 15:36:24 +02:00
- uses: https://code.lab.cowley.tech/homelab/forgejo-opentofu-runner@main
2024-09-02 15:37:42 +02:00
# - 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
2024-09-02 11:41:21 +02:00
- name: Setup Kubernetes client
run: |
export B2_APPLICATION_KEY=${{ secrets.B2_APPLICATION_KEY }}
2024-09-02 15:39:32 +02:00
echo ${{ secrets.B2_APPLICATION_KEY_ID }}
2024-09-02 14:58:22 +02:00
ls /usr/bin
2024-09-02 15:39:32 +02:00
which tofu
2024-09-02 15:11:17 +02:00
# - 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}