-
Notifications
You must be signed in to change notification settings - Fork 2
/
dockerhub-olman-base-amd64.yml
97 lines (94 loc) · 2.55 KB
/
dockerhub-olman-base-amd64.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
resource_types:
- name: irc-notification
type: docker-image
source:
repository: flavorjones/irc-notification-resource
resources:
- name: olman.git
type: git
icon: github
source:
uri: https://github.com/openscad/openscad-library-manager.git
- name: every-tuesday-at-3-am-utc
type: time
source:
start: "3:00"
stop: "5:00"
days: [Tuesday]
location: UTC
initial_version: true
- name: libera-openscad-ci
type: irc-notification
source:
server: irc.libera.chat
port: 6697
join: true
channel: ((openscad-ci-bot-channel))
user: ((openscad-ci-bot-username))
password: ((openscad-ci-bot-password))
- name: olman-base
type: registry-image
icon: docker
source:
repository: openscad/olman-base
tag: latest
username: ((dockerhub-username))
password: ((dockerhub-password))
jobs:
- name: build
public: true
plan:
- put: libera-openscad-ci
params:
message: >
Starting ${BUILD_TEAM_NAME}/${BUILD_PIPELINE_NAME}: build ${BUILD_ID} ${BUILD_URL}
- get: every-tuesday-at-3-am-utc
trigger: true
- get: olman.git
- task: generate-tag-name
config:
platform: linux
image_resource:
type: registry-image
source:
repository: debian
tag: bookworm-slim
outputs:
- name: meta
run:
path: sh
args:
- -exc
- date '+dev.%Y-%m-%d' > ./meta/tags
- task: build-image
privileged: true
config:
platform: linux
image_resource:
type: registry-image
source:
# Check out the README for oci-build-task at
# https://github.com/concourse/oci-build-task
repository: concourse/oci-build-task
inputs:
- name: olman.git
outputs:
- name: image
params:
CONTEXT: ./olman.git/docker/base
run:
path: build
- put: olman-base
params:
additional_tags: ./meta/tags
image: ./image/image.tar
on_success:
put: libera-openscad-ci
params:
message: >
Build successful ${BUILD_TEAM_NAME}/${BUILD_PIPELINE_NAME}: build ${BUILD_ID} ${BUILD_URL}
on_failure:
put: libera-openscad-ci
params:
message: >
Build failed ${BUILD_TEAM_NAME}/${BUILD_PIPELINE_NAME}: build ${BUILD_ID} ${BUILD_URL}