-
Notifications
You must be signed in to change notification settings - Fork 64
/
.gitlab-ci.yml
72 lines (62 loc) · 1.44 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
variables:
CI_IMAGE: $DOCKER_HUB_USER/openwrt
RELEASE: "19.07.7"
.build:
image: docker:latest
stage: build
services:
- docker:dind
before_script:
- docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_TOKEN
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
script:
- export OPENWRT_SOURCE_VER=$RELEASE
- export ARCH=$ARCH
- export IMAGE=$CI_IMAGE
- export TAG=${RELEASE}-${ARCH}
- ./build.sh
- docker push $CI_IMAGE:${RELEASE}-${ARCH}
only:
- master
.build-squashfs:
extends: .build
before_script:
- docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_TOKEN
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- apk add util-linux fakeroot squashfs-tools
build-release-x86-64:
extends: .build
variables:
ARCH: x86-64
build-release-armvirt-64:
extends: .build
variables:
ARCH: armvirt-64
build-release-armvirt-32:
extends: .build
variables:
ARCH: armvirt-32
build-release-bcm2708:
extends: .build-squashfs
variables:
ARCH: bcm2708
build-snapshot-x86-64:
extends: .build
variables:
ARCH: x86-64
RELEASE: snapshot
build-snapshot-armvirt-64:
extends: .build
variables:
ARCH: armvirt-64
RELEASE: snapshot
build-snapshot-armvirt-32:
extends: .build
variables:
ARCH: armvirt-32
RELEASE: snapshot
build-snapshot-bcm2708:
extends: .build-squashfs
variables:
ARCH: bcm2708
RELEASE: snapshot