-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
53 lines (48 loc) · 1019 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
46
47
48
49
50
51
52
53
# Required variables:
# PACKAGE_BUILD_IMAGE
# PACKAGE_UPLOAD_IMAGE
# TARGET_SUITE
# DPUT_REPOSITORY_NAME
stages:
- tests
- build
- deploy
tests:
# See https://git.vaultit.org/Foretagsdeklaration/docker-build-images
image: registry.vaultit.org/foretagsdeklaration/bolagsfakta-debian-image
stage: tests
cache:
key: "qvarnmr"
paths:
- .pip-cache
variables:
PIP_CACHE_DIR: .pip-cache/
script:
- make test
debian_package:
stage: build
image: $PACKAGE_BUILD_IMAGE
script:
- ./build-debian-package $TARGET_SUITE 1
- mv ../*.build ../*.changes ../*.dsc ../*.tar.* ../*.deb ./
artifacts:
paths:
- "*.build"
- "*.changes"
- "*.dsc"
- "*.tar.*"
- "*.deb"
upload_package:
stage: deploy
image: $PACKAGE_UPLOAD_IMAGE
before_script:
- /bin/decrypt_secrets.sh
script:
- debsign -k$GPGKEYID *.changes
- dput $DPUT_REPOSITORY_NAME *.changes
only:
- master
artifacts:
paths:
- "*.changes"
- "*.dsc"