---
resources:
- name: repo
type: git
source:
uri: https://git.kun.is/pim/fluentd.git
- name: my-image
type: registry-image
repository: git.kun.is/pim/fluentd
username: pim
password: ((api_key))
tag: stable
- name: upstream-image
repository: fluent/fluentd
tag: v1.16-debian-1
- name: version
type: semver
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
- task: build-image
privileged: true
config:
platform: linux
image_resource:
repository: concourse/oci-build-task
inputs:
outputs:
- name: image
params:
DOCKERFILE: repo/Dockerfile
LABELS_FILE: repo/labels
run:
path: sh
args:
- -exc
- |
build
ls image
- get: version
bump: patch
- put: my-image
image: image/image.tar
additional_tags: version/version
- put: version
file: version/version