-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from aigisuk/develop
🔥 remove k8s dashboard temp configuration 🐛 fix GitHub Actions
- Loading branch information
Showing
9 changed files
with
53 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
name: 'Terraform GitHub Actions' | ||
|
||
on: | ||
push: | ||
branches: | ||
- release | ||
pull_request: | ||
|
||
jobs: | ||
|
@@ -49,7 +46,7 @@ jobs: | |
needs: terraform-fmt | ||
runs-on: ubuntu-latest | ||
env: | ||
WORKING_DIR: "examples/default_deployment" | ||
WORKING_DIR: "examples/github_actions" | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# GitHub Actions Deployment Example | ||
|
||
This example is specifically for module tests. | ||
|
||
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --> | ||
## Inputs | ||
|
||
| Name | Description | Type | Default | Required | | ||
|------|-------------|:----:|:-----:|:-----:| | ||
| do_token | DigitalOcean Personal Access Token | string | N/A | yes | | ||
| ssh_key_fingerprints | List of SSH Key fingerprints | list(string) | N/A | yes | | ||
|
||
## Outputs | ||
|
||
| Name | Description | | ||
|------|-------------| | ||
| cluster_summary | A summary of the cluster's provisioned resources. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
terraform { | ||
# Reconfigure the backend block to suit your needs | ||
backend "remote" { | ||
hostname = "app.terraform.io" | ||
organization = "AIGISUK" | ||
|
||
workspaces { | ||
name = "gh-actions-terraform-digitalocean-ha-k3s" | ||
} | ||
} | ||
required_providers { | ||
digitalocean = { | ||
source = "digitalocean/digitalocean" | ||
} | ||
} | ||
required_version = ">= 0.13" | ||
} | ||
|
||
provider "digitalocean" {} | ||
|
||
module "ha-k3s" { | ||
source = "git::https://github.com/aigisuk/terraform-digitalocean-ha-k3s.git?ref=develop" | ||
|
||
do_token = var.do_token | ||
ssh_key_fingerprints = var.ssh_key_fingerprints | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
output "cluster_summary" { | ||
value = module.ha-k3s.cluster_summary | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
variable "ssh_key_fingerprints" {} | ||
variable "do_token" {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters