Skip to content

Instantly share code, notes, and snippets.

@BBB
Created May 19, 2020 17:47
Show Gist options
  • Save BBB/108c70a6cbcdcd11117c87d335deffd9 to your computer and use it in GitHub Desktop.
Save BBB/108c70a6cbcdcd11117c87d335deffd9 to your computer and use it in GitHub Desktop.
resources:
- name: project-release
type: github-release
source:
owner: ((github_username))
repository: ((github_repo))
access_token: ((github_access_token))
release: true
pre_release: true
- name: git-repo
type: git
source:
uri: ((github_repo_uri))
branch: master
username: ((github_username))
private_key: ((github_private_key))
- name: docker-myproj-image
type: docker-image
source:
repository: ((repo))
username: ((dockerhub_user))
password: ((dockerhub_password))
jobs:
- name: build-cached-image
plan:
- get: project-release
trigger: true
- get: git-repo
- put: docker-myproj-image
params:
build: ./git-repo
# build_args:
# need to find out the path to the workspace from where the docker image is built
# versionFile: ../project-release/tag
tag_as_latest: true
tag_file: ./project-release/tag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment