Add basic tofu workflow, debug gitea act secrets in env
Some checks failed
Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Failing after 0s

This commit is contained in:
Mike Holloway 2025-01-07 03:47:07 -05:00
parent e4abdeb926
commit ac0c9ac39c
2 changed files with 30 additions and 0 deletions

24
.gitea/tofu/main.tf Normal file
View File

@ -0,0 +1,24 @@
terraform {
required_providers {
linode = {
source = "linode/linode"
# version = "..."
}
}
}
# Configure the Linode Provider
provider "linode" {
token = var.token
}
resource "linode_instance" "eqit_test_instance" {
image = "linode/almalinux9"
label = "act_worker"
region = "us-ord"
type = "g6-nanode-1"
authorized_keys = ['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeRI1w3uNny7KjK2UdlAnyoGdGgtOx4isSD52u5dr4QkkdLRMj42dLjgT0MK+QehlgaH2XzFPMDz+hZQ+66YeBSm+F4km/8F9XVyUzGl0scUA1p0pqeL3FiyM3Art4Bo71zuE3PvMjyI3pGMKQ3VDWVA0XdAjjSw4G+czJTxZLLBPGvzDT07WuWM4Evl6H21Gn7PB6CKNV0vuUZwGiCsjRbghml1L2kDtTXV1B6wQsniuhQigIVo6YXhMgge/2UCcmiyeEizdfaSstrQHEyxFMvlPUJyw4a3plAuPORDyZdAFF6OA7/wP5fVWoCu/CkbMIDjPifXGQOuhQU1qUVy7r','ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKvAESrM24zRUUenL1sGmtd5s+e7qhkUF+5ylPWTcG/y']
root_pass = "supersecrettestpassword"
}
variable "token" {}

View File

@ -7,7 +7,13 @@ on:
jobs:
Explore-terraform-molecule-Gitea-Action:
env:
TF_VAR_token: "${{ secret.LINODE_API_TOKEN }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: opentofu/setup-opentofu@v1
run: |
pwd
env