add pipeline

This commit is contained in:
Pim Kunis 2023-08-02 13:28:43 +02:00
parent aeed65257b
commit b43595ac9e
4 changed files with 59 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
secrets.yml

1
deploy.md Normal file
View file

@ -0,0 +1 @@
`fly -t home set-pipeline -l secrets.yml -p fluentd -c pipeline.yml`

1
labels Normal file
View file

@ -0,0 +1 @@
maintainer=Pim Kunis

View file

@ -1,5 +1,21 @@
--- ---
resources: 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 - name: version
type: semver type: semver
source: source:
@ -10,3 +26,43 @@ resources:
file: version file: version
private_key: {{private_key}} private_key: {{private_key}}
icon: numeric 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