From 5cf1b5c64047d6cbc4892e54f00d7336417eb629 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Fri, 17 Oct 2025 10:29:55 +1100 Subject: [PATCH] feat: add build job - add build job that runs `make plan` --- .gitea/workflows/build.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..2f2c3b0 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,32 @@ +--- +name: Build + +on: + pull_request: + +jobs: + build: + runs-on: almalinux-8 + container: + image: git.unkin.net/unkin/almalinux9-actionsdind:latest + options: --privileged + + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Fetch master branch + run: | + git fetch origin master:master + + - name: Show changed files + run: | + git diff --name-only master + + - name: Run OpenTofu Plan + env: + VAULT_ROLEID: ${{ secrets.TERRAFORM_INCUS_VAULT_ROLEID }} + run: | + make plan