Use vars in the env (oooh, does it work!?)

This commit is contained in:
Luke Murphy 2020-04-14 15:58:01 +02:00
parent 120e1e4263
commit 8a932a60ed
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,7 @@
---
vars:
port: "8042"
volumes:
- type: directory
src: /var/lib/drone
@ -16,6 +19,6 @@ env:
DRONE_JSONNET_ENABLED: "true"
DRONE_RPC_SECRET: "{{ vault.rpc_secret }}"
DRONE_SERVER_HOST: "drone.autonomic.zone"
DRONE_SERVER_PORT: ":8042"
DRONE_SERVER_PORT: ":{{ vars.port }}"
DRONE_SERVER_PROTO: "https"
DRONE_USER_FILTER: "autonomic-cooperative"