This repository has been archived on 2024-02-18. You can view files and clone it, but cannot push or open issues or pull requests.
fluentd/pipeline.yml

69 lines
1.5 KiB
YAML
Raw Normal View History

2023-08-02 10:48:36 +00:00
---
resources:
2023-08-02 11:28:43 +00:00
- 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
2023-08-02 10:48:36 +00:00
- 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
2023-08-02 11:28:43 +00:00
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