-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.gitlab-ci.yml
35 lines (31 loc) · 986 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
stages:
- build
- deploy
.build_any:
image: debian/buildd:bullseye
stage: build
script:
- echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list
- DEBIAN_FRONTEND=noninteractive apt -o Acquire::Check-Valid-Until=false update
- DEBIAN_FRONTEND=noninteractive apt --yes install build-essential devscripts
- mk-build-deps
- DEBIAN_FRONTEND=noninteractive apt --yes install ./sibench-build-deps_*.deb
- rm ./sibench-build-deps_*
- ln -sf /usr/lib/go-1.18/bin/* /usr/bin/
- debuild -us -uc
- mkdir output
- dcmd mv -v ../${CI_JOB_NAME%_*}*changes output/
sibench_amd64.deb:
extends:
- .build_any
tags:
- amd64
downstream-job:
stage: deploy
variables:
UPSTREAM_PROJECT_NAME: sibench
UPSTREAM_BRANCH: $CI_COMMIT_REF_NAME
UPSTREAM_TAG: $CI_COMMIT_TAG
UPSTREAM_COMMIT: $CI_COMMIT_SHA
UPSTREAM_COMMIT_SHORT: $CI_COMMIT_SHORT_SHA
trigger: benchmarking/sibench-packaging