mirror of
https://github.com/thegeeklab/wp-opentofu.git
synced 2024-11-09 18:00:40 +00:00
39 lines
681 B
YAML
39 lines
681 B
YAML
build:
|
|
image: golang:1.5
|
|
environment:
|
|
- CGO_ENABLED=0
|
|
commands:
|
|
- make deps
|
|
- make vet
|
|
- make build
|
|
- make test
|
|
|
|
publish:
|
|
coverage:
|
|
when:
|
|
branch: master
|
|
docker:
|
|
username: $$DOCKER_USER
|
|
password: $$DOCKER_PASS
|
|
email: $$DOCKER_EMAIL
|
|
repo: plugins/drone-terraform
|
|
tag: latest
|
|
when:
|
|
branch: master
|
|
docker:
|
|
username: $$DOCKER_USER
|
|
password: $$DOCKER_PASS
|
|
email: $$DOCKER_EMAIL
|
|
repo: plugins/drone-terraform
|
|
tag: develop
|
|
when:
|
|
branch: develop
|
|
|
|
plugin:
|
|
name: Terraform
|
|
desc: Execute Terraform plan and apply
|
|
type: deploy
|
|
image: plugins/drone-terraform
|
|
labels:
|
|
- terraform
|