-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
45 lines (36 loc) · 865 Bytes
/
.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
default:
image: "ubuntu:latest"
stages:
- getinfo
- build
getinfo:
stage: getinfo
script:
- apt-get install -y bash
- source ./buildconfig.sh
- echo "VERSION=$version" >> build.env
- echo "PACKAGE=$package" >> build.env
- echo "BUILD_NUM=$build" >> build.env
- echo "NAME=$name" >> build.env
- echo "DEBUG=$debug" >> build.env
artifacts:
reports:
dotenv: build.env
build-job:
stage: build
cache:
- key:
files:
- deps.lock
paths: ["build/deps"]
script:
- dpkg --add-architecture i386
- apt-get update
- apt-get install -y libc6:i386 curl zip bzip2 make
- make
artifacts:
name: "$PACKAGE-$VERSION-b$BUILD_NUM"
paths:
- build/dist/$PACKAGE/latest/
dependencies:
- getinfo