2022-08-24 08:05:20 +02:00
|
|
|
platform: linux/arm64
|
|
|
|
|
|
|
|
pipeline:
|
|
|
|
|
2022-08-24 12:05:55 +02:00
|
|
|
# gitleaks:
|
|
|
|
# image: registry.monotremata.xyz/gitleaks
|
|
|
|
# pull: true
|
|
|
|
# commands:
|
|
|
|
# - gitleaks --source . --verbose --redact detect
|
|
|
|
|
2022-08-24 10:37:19 +02:00
|
|
|
init:
|
|
|
|
image: registry.monotremata.xyz/terraform
|
|
|
|
pull: true
|
|
|
|
commands:
|
|
|
|
- terraform init -backend-config="conn_str=$BACKEND_CONN_STR"
|
|
|
|
secrets:
|
|
|
|
[backend_conn_str]
|
|
|
|
|
2022-08-24 11:20:29 +02:00
|
|
|
plan:
|
|
|
|
image: registry.monotremata.xyz/terraform
|
|
|
|
pull: true
|
|
|
|
commands:
|
|
|
|
- terraform plan -out=tfplan
|
|
|
|
- terraform show -json tfplan
|
2022-08-24 11:54:31 +02:00
|
|
|
environment:
|
|
|
|
- HTTP_PROXY=caladan:8888
|
|
|
|
- HTTPS_PROXY=caladan:8888
|
2022-08-24 18:04:36 +02:00
|
|
|
secrets:
|
|
|
|
- linode_token
|
|
|
|
- namecheap_api_key
|
2022-08-25 09:01:47 +02:00
|
|
|
- vultr_api_key
|
2022-08-24 11:20:29 +02:00
|
|
|
|
2022-08-24 12:05:55 +02:00
|
|
|
apply:
|
|
|
|
image: registry.monotremata.xyz/terraform
|
|
|
|
pull: true
|
|
|
|
commands:
|
|
|
|
- terraform apply tfplan
|
|
|
|
environment:
|
|
|
|
- HTTP_PROXY=caladan:8888
|
|
|
|
- HTTPS_PROXY=caladan:8888
|
|
|
|
secrets: [namecheap_api_key]
|
2022-08-24 08:05:20 +02:00
|
|
|
|
|
|
|
notify:
|
|
|
|
image: registry.monotremata.xyz/xmpp-ci
|
|
|
|
pull: true
|
|
|
|
settings:
|
|
|
|
username: "woodpecker@monotremata.xyz"
|
|
|
|
recipient: "rilla@monotremata.xyz"
|
|
|
|
password:
|
|
|
|
from_secret: xmpp_password
|
|
|
|
when:
|
|
|
|
status: [success, failure]
|