forked from Moxa-Linux/moxa-it87-gpio-led-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
42 lines (39 loc) · 1.2 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
variables:
GIT_DEPTH: "1"
stages:
- mil-internal-release_build
- prepare_mil-internal-release_debs
mil-internal-release_build:
tags:
- Runner-Stretch
stage: mil-internal-release_build
script:
- echo "deb http://mil-internal-apt:8080/mirror-debian_20200718/debian stretch main" > /etc/apt/sources.list
- curl -fsSL http://mil-internal-apt:8080/mil_internal_apt.gpg | apt-key add -
- apt-get update
- apt-get install -y -qq --no-install-recommends build-essential devscripts
- apt-get build-dep ./ -y
- dpkg-buildpackage -us -uc -b
- mv ../*.buildinfo .
- mv ../*.changes .
- mv ../*.deb .
artifacts:
name: "${CI_PROJECT_NAME}"
paths:
- ./*.buildinfo
- ./*.changes
- ./*.deb
prepare_mil-internal-release_debs:
tags:
- Runner-Stretch
stage: prepare_mil-internal-release_debs
only:
refs:
- stretch/master
dependencies:
- mil-internal-release_build
when: manual
script:
- mkdir -p /cache/stretch/mil-internal-release/
- cp *.deb /cache/stretch/mil-internal-release/
- ls /cache/stretch/mil-internal-release/