-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
46 lines (39 loc) · 1.07 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
43
44
45
46
image: registry.gitlab.com/kolanich-subgroups/docker-images/cpp_build_tools:latest
stages:
- build
- trigger
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`
- mkdir -p ./public
- "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
- gpg --export $GPG_KEY_FINGERPRINT > ./public/public.gpg
- gpg --list-keys $GPG_KEY_FINGERPRINT
cache:
paths:
- "$PYTHONUSERBASE"
script:
- python3 ./BuildDeb.py
artifacts:
paths:
- public
update_docker_image:
only:
- master
stage: trigger
allow_failure: true
trigger:
project: KOLANICH-subgroups/docker-images/cpp_build_tools
strategy: depend