68 lines
1.5 KiB
YAML
68 lines
1.5 KiB
YAML
---
|
|
resources:
|
|
- name: repo
|
|
type: git
|
|
source:
|
|
uri: https://git.kun.is/pim/fluentd.git
|
|
- name: my-image
|
|
type: registry-image
|
|
source:
|
|
repository: git.kun.is/pim/fluentd
|
|
username: pim
|
|
password: ((api_key))
|
|
tag: stable
|
|
- name: upstream-image
|
|
type: registry-image
|
|
source:
|
|
repository: fluent/fluentd
|
|
tag: v1.16-debian-1
|
|
- name: version
|
|
type: semver
|
|
source:
|
|
driver: git
|
|
initial_version: "1.0.0"
|
|
uri: ssh://git@git.kun.is:56287/pim/fluentd.git
|
|
branch: version
|
|
file: version
|
|
private_key: {{private_key}}
|
|
icon: numeric
|
|
|
|
jobs:
|
|
- name: build-and-publish-image
|
|
plan:
|
|
- get: repo
|
|
trigger: true
|
|
- get: upstream-image
|
|
trigger: true
|
|
- task: build-image
|
|
privileged: true
|
|
config:
|
|
platform: linux
|
|
image_resource:
|
|
type: registry-image
|
|
source:
|
|
repository: concourse/oci-build-task
|
|
inputs:
|
|
- name: repo
|
|
outputs:
|
|
- name: image
|
|
params:
|
|
DOCKERFILE: repo/Dockerfile
|
|
LABELS_FILE: repo/labels
|
|
run:
|
|
path: sh
|
|
args:
|
|
- -exc
|
|
- |
|
|
build
|
|
ls image
|
|
- get: version
|
|
params:
|
|
bump: patch
|
|
- put: my-image
|
|
params:
|
|
image: image/image.tar
|
|
additional_tags: version/version
|
|
- put: version
|
|
params:
|
|
file: version/version
|