-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
39 lines (33 loc) · 979 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
image: registry.gitlab.com/kolanich-subgroups/docker-images/cpp_build_tools:latest
stages:
- build
pages:
tags:
- shared
- linux
stage: build
variables:
GIT_DEPTH: "1"
PYTHONUSERBASE: "${CI_PROJECT_DIR}/python_user_packages"
DEBFULLNAME: "${GITLAB_USER_LOGIN}"
#DEBEMAIL: "${GITLAB_USER_EMAIL}"
before_script:
- export PATH="$PATH:$PYTHONUSERBASE/bin" # don't move into `variables`
- apt-get update
- apt-get install -y python3-gpg
- gpg --version
- "export GPG_KEY_FINGERPRINT=`echo $GPG_KEY | base64 -d | gpg --list-packets | grep -iPo '(?<=keyid: )[a-f0-9]+'`"
- echo $GPG_KEY_FINGERPRINT
- echo $GPG_KEY | base64 -d | gpg --import
- export GPG_KEY=WIPED
- mkdir ./public
- gpg --export $GPG_KEY_FINGERPRINT > ./public/public.gpg
- gpg --list-keys $GPG_KEY_FINGERPRINT
cache:
paths:
- "$PYTHONUSERBASE"
script:
- python3 ./BuildDeb.py
artifacts:
paths:
- public