-
Notifications
You must be signed in to change notification settings - Fork 2
/
mxe-x86_64-openscad.yml
87 lines (85 loc) · 2.44 KB
/
mxe-x86_64-openscad.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
resource_types:
- name: irc-notification
type: docker-image
source:
repository: flavorjones/irc-notification-resource
resources:
- name: docker-openscad.git
type: git
icon: github
source:
uri: https://github.com/openscad/docker-openscad.git
- 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: mxe-x86_64-openscad
type: registry-image
icon: docker
source:
repository: openscad/mxe-x86_64-openscad
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: docker-openscad.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 '+%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: docker-openscad.git
outputs:
- name: image
params:
CONTEXT: docker-openscad.git/mxe
DOCKERFILE: docker-openscad.git/mxe/mxe-x86_64-openscad/Dockerfile
run:
path: build
- put: mxe-x86_64-openscad
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}