Skip to content

Commit

Permalink
add gha and distant connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier2p committed Sep 9, 2023
1 parent acfee45 commit a1f3306
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/.prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
trailingComma: "es5"
tabWidth: 4
semi: true
singleQuote: true
printWidth: 120
overrides:
- files: "*.yml"
options:
tabWidth: 2
printWidth: 80
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Continuous Integration

on:
push:
branches:
- main

jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Terraform
uses: hashicorp/setup-terraform@v2

- name: Format
run: terraform fmt -check -recursive

- name: Get
run: terraform get

- name: Init
run: terraform init

- name: Validate
run: terraform validate -no-color

- name: Plan
run: terraform plan
1 change: 1 addition & 0 deletions hosts/scariff/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ terraform {
provider "docker" {
# can be the port in remote connection
host = "unix:///var/run/docker.sock"
# host = "tcp://${var.host}:2375"
}
1 change: 1 addition & 0 deletions hosts/scariff/media/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ terraform {
provider "docker" {
# can be the port in remote connection
host = "unix:///var/run/docker.sock"
# host = "tcp://${var.host}:2375"
}
1 change: 1 addition & 0 deletions hosts/scariff/monitoring/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ terraform {
provider "docker" {
# can be the port in remote connection
host = "unix:///var/run/docker.sock"
# host = "tcp://${var.host}:2375"
}

0 comments on commit a1f3306

Please sign in to comment.