Last active
July 17, 2019 16:38
-
-
Save clhynfield/ee3542d2c8bf9603bab61c19409417e0 to your computer and use it in GitHub Desktop.
Mapping interpolated env configs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# AFTER - export-installation uses post-interpolated configurations | |
- name: export-installation | |
serial: true | |
plan: | |
- aggregate: | |
- get: daily-trigger | |
trigger: true | |
- get: platform-automation-image | |
params: | |
unpack: true | |
- get: platform-automation-tasks | |
params: | |
unpack: true | |
- get: configuration | |
- task: credhub-interpolate | |
image: platform-automation-image | |
file: platform-automation-tasks/tasks/credhub-interpolate.yml | |
params: | |
CREDHUB_CLIENT: ((credhub-client)) | |
CREDHUB_SECRET: ((credhub-secret)) | |
CREDHUB_SERVER: ((credhub-server)) | |
CREDHUB_CA_CERT: ((credhub-ca-cert)) | |
PREFIX: '/pipeline/gcp' | |
INTERPOLATION_PATH: "env" | |
input_mapping: | |
files: configuration | |
output_mapping: | |
interpolated-files: interpolated-env | |
- task: export-installation | |
image: platform-automation-image | |
file: platform-automation-tasks/tasks/export-installation.yml | |
input_mapping: | |
env: interpolated-env | |
params: | |
ENV_FILE: env/((foundation))/env/env.yml | |
INSTALLATION_FILE: installation-$timestamp.zip | |
- put: installation | |
params: | |
file: installation/installation*.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment