-
Notifications
You must be signed in to change notification settings - Fork 175
Improve Concourse #70
Improve Concourse #70
Conversation
This change updates the pipeline definition to use the proper substitution syntax for Concourse 3.2 and later.
This change updates the pipeline to make use of YAML references. This allows common blocks of code (like parameter groups) to be defined once and shared between jobs.
This change modifies the format a bit to make it consistent across the entire file. This mostly has to do with the indention of YAML arrays.
The change improves the generate-version task. It does this by using a more descriptive output name, using a local clone as recommended by the Concourse team, and only configuring the local git repository.
APP_MEMORY_LIMIT: {{app-memory-limit}} | ||
BUILD_OPTIONS: {{build-options}} | ||
PAAS_TYPE: {{paas-type}} | ||
common-params: &common-params |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is epic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought you'd like that 😉
- name: repo | ||
type: git | ||
source: | ||
uri: ((app-url)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it mandatory to use (( ))
syntax, or does the {{ }}
syntax still apply?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{{ }}
is now deprecated since curly braces are actually YAML syntax keywords (YAML flow syntax specifically source: {uri: https://...}
). They never should have used it and are now in alignment with most other YAML templating systems.
These changes are a step-by-step improvement on the existing Concourse scripting implementation. Some of the changes are significant some are just idiomatic formatting changes. At this point there is no change to how the pipeline itself works, just improvements to the Concourse configuration.