Docker container for github.com/geofffranks/spruce
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.

68 lines
1.7 KiB

9 months ago
---
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: spruce
type: registry-image
icon: wall
source:
repository: (( grab meta.image.spruce.repo ))
tag: (( grab meta.image.spruce.tag ))
.: (( inject meta.registry.auth ))
- name: source
type: git
icon: git
source:
.: (( inject meta.source ))
jobs:
- name: "spruce"
public: true
plan:
- get: commons
- get: source
trigger: true
- get: alpine
trigger: true
- get: golang
- task: "build-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_SPRUCE_VERSION: (( grab meta.upstream.spruce.version ))
BUILD_ARG_GOLANG_REPO: (( grab meta.upstream.golang.repo ))
BUILD_ARG_GOLANG_VERSION: (( grab meta.upstream.golang.tag ))
CONTEXT: (( grab meta.image.spruce.context ))
- task: "write-image-tags"
file: (( grab meta.tasks.img-write-tags ))
params:
TAGS: (( grab meta.upstream.spruce.version ))
- put: spruce
params:
image: image/image.tar
additional_tags: metadata/additional_tags