-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
57 lines (44 loc) · 1.45 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
47
48
49
50
51
52
53
54
55
include:
- project: "GBC08/development/devices/shared/devicescripts/bu83_python_pipeline"
ref: 0.11.0
file: "build-template.yaml"
variables:
PROJECT_NAME: "sick_scan_rest_client"
ENABLE_BUILD_PACKAGE: "True"
ENABLE_PYCODESTYLE: "False"
ENABLE_PYLINT: "False"
ENABLE_PYTEST: "False"
ENABLE_PYTEST_WINDOWS: "False"
ENABLE_DEPLOY_TO_ARTIFACTORY: "True"
ENABLE_GENERATE_DOCS: "False"
ENABLE_RELEASE_DOCS: "False"
# Vault
VAULT_AUTH_ROLE: "gbc08_bu83_readonly"
VAULT_SERVER_URL: "https://csxvault.sickcn.net"
POETRY_VERSION: 1.5.1
.inject_secrets:
secrets:
USER:
vault: readonly/builduser/user@GBC08_BU83
file: false
APITOKEN:
vault: readonly/builduser/key@GBC08_BU83
file: false
.setup_pypi_mirror:
before_script:
- poetry source add pypi-mirror https://deagxartifactory.sickcn.net/artifactory/api/pypi/pypi/simple --default
- poetry source add bu83-pypi https://deagxartifactory.sickcn.net/artifactory/api/pypi/gbc08-pypi-local/simple --secondary
# Override .default_runner_windows job from the python pipeline to extend .default_runner
.default_runner_windows:
tags:
- os_windows
- type_docker
before_script:
- !reference [.setup_pypi_mirror, before_script]
# Override .default_runner_linux job from the python pipeline to extend .default_runner
.default_runner_linux:
tags:
- type_docker
- os_linux
before_script:
- !reference [.setup_pypi_mirror, before_script]