Skip to content

Commit 598916e

Browse files
feat: add basic CI (#6)
1 parent 6778e5c commit 598916e

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

.github/workflows/terraform.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Terraform
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
validate:
11+
runs-on: ubuntu-latest
12+
defaults:
13+
run:
14+
working-directory: ${{ matrix.path }}
15+
strategy:
16+
matrix:
17+
path: [".", "examples/nat-gateway"]
18+
steps:
19+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
20+
21+
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
22+
23+
- run: terraform fmt -check -recursive
24+
- run: terraform init -backend=false
25+
- run: terraform validate

examples/nat-gateway/dummy.pub

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILMZ+zJ1L8a7gYJb2dsFmEDxcRXgV3Tqj5WoAB4nZ9rb [email protected]

examples/nat-gateway/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Change these to match your environment
22
locals {
33
location = "East US"
4-
admin_ssh_key = file("~/.ssh/id_rsa.azure.pub")
4+
admin_ssh_key = file("./dummy.pub")
55
firezone_token = "YOUR_FIREZONE_TOKEN"
66
}
77

88
module "gateway" {
9-
source = "firezone/gateway/azurerm"
9+
source = "../../" # Replace with `firezone/gateway/azurerm`
1010

1111
###################
1212
# Required inputs #

0 commit comments

Comments
 (0)