Skip to content

Instantly share code, notes, and snippets.

@dhonig
Last active July 15, 2019 23:05
Show Gist options
  • Save dhonig/566354a1b23974819b1eb0c456b6a70e to your computer and use it in GitHub Desktop.
Save dhonig/566354a1b23974819b1eb0c456b6a70e to your computer and use it in GitHub Desktop.
Example.yml
Resources:
- name: docker-image
type: registry-image-resource
source:
username: ((docker-hub-username))
password: ((docker-hub-password))
repository: ((helloapi-docker-repo))
debug: false
- task: build-backend-image
privileged: true
config:
platform: linux
image_resource:
type: docker-image
source: { repository: "concourse/builder"}
params:
REPOSITORY: dhonig/my-api
TAG_FILE: combined-sources/tmp/commit.txt
CONTEXT: combined-sources
BUILD_ARG_MIX_ENV: prod
inputs:
- name: combined-sources
outputs:
- name: image
caches:
- path: cache
run: {path: build}
- put: docker-image
params: {image: image/image.tar}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment