Concourse pipeline for building a Docker image with convoy (https://github.com/rancher/convoy)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

80 lines
2.1 KiB

---
resources:
- name: alpine
type: registry-image
icon: pine-tree
source:
repository: (( grab meta.upstream.alpine.repo ))
tag: (( grab meta.upstream.alpine.tag ))
.: (( inject meta.upstream.alpine.auth ))
- name: commons
type: git
icon: git
source:
.: (( inject meta.upstream.commons ))
- name: golang
type: registry-image
icon: language-go
source:
repository: (( grab meta.upstream.golang.repo ))
tag: (( grab meta.upstream.golang.tag ))
.: (( inject meta.upstream.golang.auth ))
- name: convoy-vault
type: registry-image
icon: wall
source:
repository: (( grab meta.image.convoy-vault.repo ))
tag: (( grab meta.image.convoy-vault.tag ))
.: (( inject meta.registry.auth ))
- name: source
type: git
icon: git
source:
.: (( inject meta.source ))
- name: vault-init
type: registry-image
icon: docker
source:
repository: (( grab meta.upstream.vault-init.repo ))
tag: (( grab meta.upstream.vault-init.tag ))
.: (( inject meta.upstream.vault-init.auth ))
jobs:
- name: "convoy-vault"
public: true
plan:
- get: commons
- get: source
trigger: true
- get: alpine
trigger: true
- get: golang
- get: vault-init
trigger: true
- task: "build convoy-vault image"
file: (( grab meta.tasks.img-build-oci ))
privileged: true
input_mapping: {context: source}
params:
BUILD_ARG_ALPINE_REPO: (( grab meta.upstream.alpine.repo ))
BUILD_ARG_ALPINE_VERSION: (( grab meta.upstream.alpine.tag ))
BUILD_ARG_CONVOY_VERSION: (( grab meta.upstream.convoy.version ))
BUILD_ARG_GOLANG_REPO: (( grab meta.upstream.golang.repo ))
BUILD_ARG_GOLANG_VERSION: (( grab meta.upstream.golang.tag ))
BUILD_ARG_VAULT_INIT_REPO: (( grab meta.upstream.vault-init.repo ))
BUILD_ARG_VAULT_INIT_VERSION: (( grab meta.upstream.vault-init.tag ))
CONTEXT: (( grab meta.image.convoy-vault.context ))
- task: "write image tags"
file: (( grab meta.tasks.img-write-tags ))
params:
TAGS: (( grab meta.upstream.convoy.version ))
- put: convoy-vault
params:
image: image/image.tar
additional_tags: metadata/additional_tags