-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
54 lines (51 loc) · 1.42 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
variables:
GIT_DEPTH: "1"
stages:
- develop-build_deb
- release-ready_to_upload
develop-build_deb:
tags:
- Runner-Stretch
stage: develop-build_deb
before_script:
- echo "deb http://ibg-linux-apt.moxa.com:8080/mirror-stretch/Debian9.13_20200718/ stretch main" >> /etc/apt/sources.list.d/moxa.source.list
- curl -fsSL http://ibg-linux-apt.moxa.com:8080/ibg-linux-apt.gpg | apt-key add -
- dpkg --add-architecture armhf
- apt-get update
- apt-get install -y --allow-unauthenticated
debhelper devscripts quilt bc
libncurses5-dev liblz4-tool u-boot-tools device-tree-compiler
build-essential crossbuild-essential-armhf
jq unzip
- apt-get build-dep -y ./
script:
- dpkg-buildpackage -us -uc -aarmhf
- dpkg-buildpackage -us -uc
after_script:
- mv ../*.buildinfo .
- mv ../*.changes .
- mv ../*.deb .
- mv ../*.dsc .
- mv ../*.tar.* .
artifacts:
name: "${CI_PROJECT_NAME}"
paths:
- "*.buildinfo"
- "*.changes"
- "*.deb"
- "*.dsc"
- "*.tar.*"
release-ready_to_upload:
tags:
- Runner-Stretch
stage: release-ready_to_upload
only:
refs:
- 4.4.176-cip31-rt23/stretch/master
dependencies:
- develop-build_deb
when: manual
script:
- mkdir -p /cache/stretch/mil1-internal-release/
- cp *.deb *.dsc *.tar.* /cache/stretch/mil1-internal-release/
- ls /cache/stretch/mil1-internal-release/