Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for build arg files in yaml format. #123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

featheredtoast
Copy link

Adds key/value yaml files as possible input for build arg file. This allows for multiline args support in from build arg files.

Since build arg file splits on newlines, it's currently not possible to do so with build arg file option: Passing yaml would allow us to set the value of build args to any string, including newlines, making this possible:

my-input/myvars.yaml

  foo: |
    first line
    second line
    third line
- task my-oci-build-task
  params:
    BUILD_ARGS_FILE: my-input/myvars.yaml
  platform: linux
  image_resource:
    type: registry-image
    source:
      repository: concourse/oci-build-task
  inputs:
    - name: my-input

setting the build arg of foo to:

first line
second line
third line

closes #122

Adds key/value yaml files as possible input for build arg file.

This allows for multiline args support in files.

Signed-off-by: Jeff Wong <[email protected]>
@featheredtoast featheredtoast force-pushed the add-yaml-build-args-file branch from 9298db4 to 82e0c08 Compare September 13, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

option for loading build arg files from yaml, supporting dynamic multiline build args
1 participant