-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathchild.tpl.yml
47 lines (43 loc) · 1.04 KB
/
child.tpl.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
stages:
- build
- manifest
.build:
stage: build
image:
name: registry.alpinelinux.org/alpine/infra/docker/exec/docker-image:latest
pull_policy: always
script: [pwd]
{% for branch in data %}
build-{{branch.rel_branch}}:
extends: .build
parallel:
matrix:
- ARCH:
{% for arch in branch.arches %}
- {{arch}}
{% endfor %}
tags:
- ci-docker-image
- $ARCH
variables:
EXEC_COMMAND: build_publish
SUBDIR: out/{{branch.rel_branch}}
DOCKER_TAG: "{{branch.rel_branch|trim('v')}}"
needs:
- pipeline: $PARENT_PIPELINE_ID
job: create-child-ci
manifest-{{branch.rel_branch}}:
stage: manifest
image:
name: registry.alpinelinux.org/alpine/infra/docker/exec/docker-image:latest
pull_policy: always
script: [pwd]
variables:
EXEC_COMMAND: manifest
MANIFEST_ARCHES: {% for arch in branch.arches %}{{arch}} {% endfor +%}
DOCKER_TAG: "{{branch.rel_branch|trim('v')}}"
tags:
- ci-docker-image
- x86_64
needs: ["build-{{branch.rel_branch}}"]
{% endfor %}