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
Some checks failed
Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Failing after 0s
This commit is contained in:
parent
e4abdeb926
commit
ac0c9ac39c
24
.gitea/tofu/main.tf
Normal file
24
.gitea/tofu/main.tf
Normal 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" {}
|
||||||
@ -7,7 +7,13 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Explore-terraform-molecule-Gitea-Action:
|
Explore-terraform-molecule-Gitea-Action:
|
||||||
|
env:
|
||||||
|
TF_VAR_token: "${{ secret.LINODE_API_TOKEN }}"
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: opentofu/setup-opentofu@v1
|
- uses: opentofu/setup-opentofu@v1
|
||||||
|
run: |
|
||||||
|
pwd
|
||||||
|
env
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user