-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.gitlab-ci.yml
159 lines (133 loc) · 3.23 KB
/
.gitlab-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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
image: registry.gitlab.freifunk-stuttgart.de/firmware/ffs-buildenv:master
variables:
GIT_SUBMODULE_STRATEGY: normal
DOCKER_DRIVER: overlay2
stages:
- generate_date
- update
- build
- package
generate_date:
stage: generate_date
script:
- date '+%Y-%m-%d' > build.date
artifacts:
paths:
- build.date
expire_in: 1 day
update:
stage: update
script:
- make -C gluon update GLUON_SITEDIR="$CI_PROJECT_DIR" FFS_BUILD_DATE=$(cat build.date)
artifacts:
paths:
- gluon/
expire_in: 1 day
.target:
stage: build
script:
- make -C gluon GLUON_SITEDIR="$CI_PROJECT_DIR" GLUON_TARGET="$GLUON_TARGET" GLUON_BRANCH=stable FFS_BUILD_DATE=$(cat build.date) V=1 -j`nproc`
except:
- tags
artifacts:
paths:
- gluon/output/
expire_in: 1 day
cache:
paths:
- gluon/openwrt/dl
- gluon/openwrt/staging_dir
key: "build-$CI_COMMIT_REF_SLUG"
target:ar71xx-generic:
extends: .target
variables:
GLUON_TARGET: ar71xx-generic
#target:ar71xx-tiny:
# extends: .target
# variables:
# GLUON_TARGET: ar71xx-tiny
#target:ar71xx-nand:
# extends: .target
# variables:
# GLUON_TARGET: ar71xx-nand
#target:ath79-generic:
# extends: .target
# variables:
# GLUON_TARGET: ath79-generic
#target:brcm2708-bcm2708:
# extends: .target
# variables:
# GLUON_TARGET: brcm2708-bcm2708
#target:brcm2708-bcm2709:
# extends: .target
# variables:
# GLUON_TARGET: brcm2708-bcm2709
#target:ipq40xx-generic:
# extends: .target
# variables:
# GLUON_TARGET: ipq40xx
#target:ipq806x-generic:
# extends: .target
# variables:
# GLUON_TARGET: ipq806x-generic
#target:lantiq-xrx200:
# extends: .target
# variables:
# GLUON_TARGET: lantiq-xrx200
#target:lantiq-xway:
# extends: .target
# variables:
# GLUON_TARGET: lantiq-xway
#target:mpc85xx-generic:
# extends: .target
# variables:
# GLUON_TARGET: mpc85xx-generic
#target:mpc85xx-p1020:
# extends: .target
# variables:
# GLUON_TARGET: mpc85xx-p1020
#target:ramips-mt7620:
# extends: .target
# variables:
# GLUON_TARGET: ramips-mt7620
#target:ramips-mt7621:
# extends: .target
# variables:
# GLUON_TARGET: ramips-mt7621
#target:ramips-mt76x8:
# extends: .target
# variables:
# GLUON_TARGET: ramips-mt76x8
#target:ramips-rt305x:
# extends: .target
# variables:
# GLUON_TARGET: ramips-rt305x
#target:sunxi-cortexa7:
# extends: .target
# variables:
# GLUON_TARGET: sunxi-cortexa7
#target:x86-generic:
# extends: .target
# variables:
# GLUON_TARGET: x86-generic
#target:x86-geode:
# extends: .target
# variables:
# GLUON_TARGET: x86-geode
#target:x86-64:
# extends: .target
# variables:
# GLUON_TARGET: x86-64
package:
stage: package
script:
- for branch in "stable" "beta" "nightly" "experimental"; do make -C gluon manifest GLUON_BRANCH="$branch" GLUON_SITEDIR="$CI_PROJECT_DIR" FFS_BUILD_DATE=$(cat build.date) V=1; done
- if [ -n "$GLUON_SIGN_KEY" ]; then cd gluon && for branch in "nightly" "experimental" "stable"; do ./contrib/sign.sh <(echo "$GLUON_SIGN_KEY") "output/images/sysupgrade/$branch.manifest"; done; fi
cache:
paths:
- gluon/openwrt/dl
key: "package"
artifacts:
paths:
- gluon/output
expire_in: 7 days