-
Notifications
You must be signed in to change notification settings - Fork 0
/
concourse-ci.yml
76 lines (73 loc) · 2.04 KB
/
concourse-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# https://materialdesignicons.com/
# https://concourse-ci.org/resources.html
# fly -t kairohm set-pipeline --pipeline bookstack --config .\concourse-ci.yml
resources:
# https://github.com/concourse/git-resource
- name: git-repo
type: git
icon: git
public: true
source:
uri: https://github.com/Zeigren/bookstack_docker.git
branch: main
# https://github.com/concourse/registry-image-resource
- name: github-image
type: registry-image
icon: github
public: true
check_every: never
source:
repository: ghcr.io/zeigren/bookstack_docker
username: Zeigren
password: ((github_token.token))
tag: latest
- name: dockerhub-image
type: registry-image
icon: docker
public: true
check_every: never
source:
repository: zeigren/bookstack
username: zeigren
password: ((dockerhub_password.password))
tag: latest
# https://concourse-ci.org/jobs.html
jobs:
- name: build-and-push
public: true
plan:
- get: git-repo
trigger: true
- load_var: version-tag
file: git-repo/version
- load_var: commit-date
file: git-repo/.git/commit_timestamp
# https://concourse-ci.org/tasks.html
- task: build-docker-image
privileged: true
config:
platform: linux
image_resource:
type: registry-image
source:
repository: concourse/oci-build-task
# https://github.com/concourse/oci-build-task
inputs:
- name: git-repo
path: .
outputs:
- name: image
params:
BUILD_ARG_VERSION: ((.:version-tag))
BUILD_ARG_DATE: ((.:commit-date))
run:
path: build
- in_parallel:
- put: github-image
params:
image: image/image.tar
additional_tags: git-repo/version
- put: dockerhub-image
params:
image: image/image.tar
additional_tags: git-repo/version