mirror of
https://github.com/thegeeklab/wp-opentofu.git
synced 2024-11-24 23:30:39 +00:00
A few doc and JSON fixes from review.
This commit is contained in:
parent
196bf5c2aa
commit
a59a5a449d
7
DOCS.md
7
DOCS.md
@ -1,8 +1,8 @@
|
|||||||
Use the Terraform plugin to apply the infrastructure configuration contained within the repository. The following parameters are used to configure this plugin:
|
Use the Terraform plugin to apply the infrastructure configuration contained within the repository. The following parameters are used to configure this plugin:
|
||||||
|
|
||||||
* `dryRun` - if true, calculates a plan but does __NOT__ apply it.
|
* `dry_run` - if true, calculates a plan but does __NOT__ apply it.
|
||||||
* `remote` - contains the configuration for the Terraform remote state tracking.
|
* `remote` - contains the configuration for the Terraform remote state tracking.
|
||||||
* `backend` - the Terrafrom remote state backend to use.
|
* `backend` - the Terraform remote state backend to use.
|
||||||
* `config` - a map of configuration parameters for the remote state backend. Each value is passed as a `-backend-config=<key>=<value>` option.
|
* `config` - a map of configuration parameters for the remote state backend. Each value is passed as a `-backend-config=<key>=<value>` option.
|
||||||
* `vars` - a map of variables to pass to the Terraform `plan` and `apply` commands. Each value is passed as a `-var <key>=<value>` option.
|
* `vars` - a map of variables to pass to the Terraform `plan` and `apply` commands. Each value is passed as a `-var <key>=<value>` option.
|
||||||
|
|
||||||
@ -11,8 +11,7 @@ The following is a sample Terraform configuration in your .drone.yml file:
|
|||||||
```yaml
|
```yaml
|
||||||
deploy:
|
deploy:
|
||||||
terraform:
|
terraform:
|
||||||
image: objectpartners/drone-terraform:latest
|
dry_run: false
|
||||||
dryRun: false
|
|
||||||
remote:
|
remote:
|
||||||
backend: S3
|
backend: S3
|
||||||
config:
|
config:
|
||||||
|
18
Makefile
18
Makefile
@ -5,28 +5,28 @@ IMAGE ?= plugins/$(EXECUTABLE)
|
|||||||
CI_BUILD_NUMBER ?= 0
|
CI_BUILD_NUMBER ?= 0
|
||||||
|
|
||||||
LDFLAGS = -X "main.buildDate=$(shell date -u '+%Y-%m-%d %H:%M:%S %Z')"
|
LDFLAGS = -X "main.buildDate=$(shell date -u '+%Y-%m-%d %H:%M:%S %Z')"
|
||||||
PACKAGES = $(shell go list ./... | grep -v /vendor/)
|
PACKAGES = $(shell go list ./... | grep -v /vendor/)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
go clean -i ./...
|
go clean -i ./...
|
||||||
|
|
||||||
deps:
|
deps:
|
||||||
go get -t ./...
|
go get -t ./...
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
go fmt $(PACKAGES)
|
go fmt $(PACKAGES)
|
||||||
|
|
||||||
vet:
|
vet:
|
||||||
go vet $(PACKAGES)
|
go vet $(PACKAGES)
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@for PKG in $(PACKAGES); do go test -cover -coverprofile $$GOPATH/src/$$PKG/coverage.out $$PKG || exit 1; done;
|
@for PKG in $(PACKAGES); do go test -cover -coverprofile $$GOPATH/src/$$PKG/coverage.out $$PKG || exit 1; done;
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-s -w $(LDFLAGS)'
|
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-s -w $(LDFLAGS)'
|
||||||
docker build --rm -t $(IMAGE) .
|
docker build --rm -t $(IMAGE) .
|
||||||
|
|
||||||
$(EXECUTABLE): $(wildcard *.go)
|
$(EXECUTABLE): $(wildcard *.go)
|
||||||
go build -ldflags '-s -w $(LDFLAGS)'
|
go build -ldflags '-s -w $(LDFLAGS)'
|
||||||
|
|
||||||
build: $(EXECUTABLE)
|
build: $(EXECUTABLE)
|
||||||
|
Loading…
Reference in New Issue
Block a user