-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yaml
65 lines (60 loc) · 1.54 KB
/
main.yaml
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
{{- $arch := .arch }}
{{- $branch := .branch }}
{{- $format := .format }}
{{- $imagename := .imagename }}
{{- $imagesize := .imagesize }}
{{- $keep := .keep }}
{{- $mirror := .mirror }}
{{- $rootfs := .rootfs }}
{{- $uefi := .uefi }}
{{- $variant := .variant }}
{{- $zip := .zip }}
{{- $desktop := .desktop }}
{{- $locale := .locale }}
{{- $password := .password }}
{{- $packages := .packages }}
{{- $timezone := .timezone }}
{{- $toolset := .toolset }}
{{- $username := .username }}
architecture: {{ $arch }}
actions:
{{ if and $rootfs $imagename }}
- description: "Unpack {{ $rootfs }}.tar.gz"
action: unpack
file: {{ $rootfs }}.tar.gz
{{ else }}
- action: recipe
recipe: rootfs.yaml
variables:
arch: {{ $arch }}
branch: {{ $branch }}
mirror: {{ $mirror }}
desktop: {{ $desktop }}
locale: {{ $locale }}
password: {{ $password }}
packages: {{ $packages }}
timezone: {{ $timezone }}
toolset: {{ $toolset }}
username: {{ $username }}
{{ end }}
{{ if $imagename }}
- action: recipe
recipe: image.yaml
variables:
arch: {{ $arch }}
format: {{ $format }}
imagename: {{ $imagename }}
imagesize: {{ $imagesize }}
keep: {{ $keep }}
uefi: {{ $uefi }}
variant: {{ $variant }}
zip: {{ $zip }}
{{ else }}
- description: "Pack {{ $rootfs }}.tar.gz"
action: pack
file: {{ $rootfs }}.tar.gz
- description: "List build artifacts"
action: run
postprocess: true
command: echo {{ $rootfs }}.tar.gz > $ARTIFACTDIR/.artifacts
{{ end }}