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 11:11:58 +02:00
|
|
|
- name: Setup OpenTofu
|
2024-09-02 11:20:23 +02:00
|
|
|
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: Tofu init
|
|
|
|
working-directory: ${{ githubworkspace }}/non-lab
|
|
|
|
run: tofu init
|