File tree Expand file tree Collapse file tree 8 files changed +131
-12
lines changed
Expand file tree Collapse file tree 8 files changed +131
-12
lines changed Original file line number Diff line number Diff line change 1+ name : ' Create README.md file'
2+ on :
3+ push :
4+ branches :
5+ - master
6+
7+ jobs :
8+ readme-create :
9+ name : ' readme-create'
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : ' Checkout'
13+ uses : actions/checkout@master
14+
15+ - name : Set up Python 3.7.
16+ uses : actions/setup-python@v2
17+ with :
18+ python-version : ' 3.x'
19+
20+ - name : ' create readme'
21+ uses :
' clouddrove/[email protected] ' 22+ with :
23+ actions_subcommand : ' readme'
24+ github_token : ' ${{ secrets.GITHUB}}'
25+ env :
26+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN}}
27+
28+
29+ - name : pre-commit check errors
30+ uses :
pre-commit/[email protected] 31+ continue-on-error : true
32+
33+ - name : pre-commit fix erros
34+ uses :
pre-commit/[email protected] 35+ continue-on-error : true
36+
37+ - name : ' push readme'
38+ uses :
' clouddrove/[email protected] ' 39+ continue-on-error : true
40+ with :
41+ actions_subcommand : ' push'
42+ env :
43+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN}}
44+
45+ - name : ' Slack Notification'
46+ uses : clouddrove/action-slack@v2
47+ with :
48+ status : ${{ job.status }}
49+ fields : repo,author
50+ author_name : ' CloudDrove'
51+ env :
52+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # required
53+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
54+ if : always()
Original file line number Diff line number Diff line change 1+ name : ' Terraform GitHub Actions'
2+ on :
3+ pull_request :
4+ branches :
5+ - master
6+
7+ jobs :
8+ terraform :
9+ name : ' Terraform'
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : ' Checkout'
13+ uses : actions/checkout@master
14+
15+ - name : ' Terraform Format'
16+ uses :
' clouddrove/[email protected] ' 17+ with :
18+ actions_subcommand : ' fmt'
19+
20+ - name : ' Terraform init'
21+ uses :
' clouddrove/[email protected] ' 22+ with :
23+ actions_subcommand : ' init'
24+ tf_actions_working_dir : ./_example
25+
26+ - name : ' Terraform validate'
27+ uses :
' clouddrove/[email protected] ' 28+ with :
29+ actions_subcommand : ' validate'
30+ tf_actions_working_dir : ./_example
31+
32+
33+ - name : ' Slack Notification'
34+ uses : clouddrove/action-slack@v2
35+ with :
36+ status : ${{ job.status }}
37+ fields : repo,author
38+ author_name : ' CloudDrove'
39+ env :
40+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # required
41+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
42+ if : always()
Original file line number Diff line number Diff line change 1- repos :
1+ repos :
22 - repo : git://github.com/antonbabenko/pre-commit-terraform
3- rev : v1.12 .0
3+ rev : v1.43 .0
44 hooks :
55 - id : terraform_fmt
66
77 - repo : https://github.com/pre-commit/pre-commit-hooks
8- rev : v2.0 .0
8+ rev : v3.2 .0
99 hooks :
1010 - id : check-merge-conflict
11- - id : trailing-whitespace
1211 - id : check-yaml
1312 - id : check-added-large-files
13+ - id : trailing-whitespace
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ github_repo: clouddrove/terraform-digitalocean-ssl-certificate
1616# Badges to display
1717badges :
1818 - name : " Terraform"
19- image : " https://img.shields.io/badge/Terraform-v0.12 -green"
19+ image : " https://img.shields.io/badge/Terraform-v0.13 -green"
2020 url : " https://www.terraform.io"
2121 - name : " Licence"
2222 image : " https://img.shields.io/badge/License-MIT-blue.svg"
@@ -36,17 +36,19 @@ usage : |-
3636 ### custom-certificate
3737 ```hcl
3838 module "custom_certificate" {
39- source = "./../../"
39+ source = "clouddrove/certificate/digitalocean"
40+ version = "0.13.0"
4041 certificate_name = "test"
41- private_key = "./../../../_ssl/private-key.pem "
42- leaf_certificate = "./../../../_ssl/star .crt"
42+ private_key = "~/.ssh/id_rsa.pub "
43+ leaf_certificate = "/etc/ssl/apache-selfsigned .crt"
4344 custom_certificate = true
4445 }
4546 ```
4647 ### lets-encrypt-certificate
4748 ```hcl
4849 module "lets_encrypt_certificate" {
49- source = "./../../"
50+ source = "clouddrove/certificate/digitalocean"
51+ version = "0.13.0"
5052 certificate_name = "test"
5153 domain_names = ["clouddrove.com"]
5254 lets_encrypt_certificate = true
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ provider "digitalocean" {
88module "custom_certificate" {
99 source = " ./../../"
1010 certificate_name = " test"
11- private_key = " ./../../../_ssl/private-key.pem "
12- leaf_certificate = " ./../../../_ssl/star .crt"
11+ private_key = " ~/.ssh/id_rsa.pub "
12+ leaf_certificate = " /etc/ssl/apache-selfsigned .crt"
1313 custom_certificate = true
1414}
Original file line number Diff line number Diff line change 1+ terraform {
2+ required_providers {
3+ digitalocean = {
4+ source = " digitalocean/digitalocean"
5+ }
6+ }
7+ required_version = " >= 0.13"
8+ }
Original file line number Diff line number Diff line change 1+ terraform {
2+ required_providers {
3+ digitalocean = {
4+ source = " digitalocean/digitalocean"
5+ }
6+ }
7+ required_version = " >= 0.13"
8+ }
Original file line number Diff line number Diff line change 11# Terraform version
22terraform {
3- required_version = " >= 0.12"
3+ required_version = " >= 0.13"
4+ required_providers {
5+ digitalocean = {
6+ source = " digitalocean/digitalocean"
7+ }
8+ }
49}
You can’t perform that action at this time.
0 commit comments