I am trying to use a Concourse pipeline to pull a git repo and then build/push a Docker image from the dockerfile in the git repo. The dockerfile has a COPY command in it to copy files from the repo into the image. Normally I'd mount a volume to be able to COPY those files in at build time, but not finding a way to do that in Concourse. Here's what I'm trying:
# pipeline.yml
resources:
- name: git-repo
type: git
source:
uri: <the-git-url>
branch: master
private_key: ((source-git-ssh-key))
- name: my-image
type: docker-image
source:
repository: gcr.io/path_to_image
username: _json_key
password: ((gcp-credential))
jobs:
...
- get: git-repo
trigger: true
- put: my-image
params:
build: git-repo/compose
# dockerfile located at git-repo/compose/Dockerfile
FROM ...
...
# git-repo/scripts/run-script.sh
COPY scripts/run-script.sh /
...
How can I make the file git-repo/scripts/run-script.sh available to be copied into my image at build time? Thank you.