-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
60 lines (48 loc) · 1.48 KB
/
.gitlab-ci.yml
File metadata and controls
60 lines (48 loc) · 1.48 KB
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
56
57
58
59
60
include:
# include the entire docker pipeline to build the backend docker image
- project: 'resengit/gitlab/pipeline-helpers'
ref: main
file: '/pipelines/docker-image.yaml'
# also include the templates for golang to define the job to build the shell client binary
- project: 'resengit/gitlab/pipeline-helpers'
ref: main
file: '/jobs/golang.yaml'
variables:
PH_CUSTOM_DOCKER_BUILD_CONTEXT_FOLDER: backend
PH_DOCKER_IMAGE_PATH: icos/shell-backend
# Client Jobs
check_for_hardcoded_ips:
stage: test
image: alpine
script:
- grep -r "10.160.3" | grep -v md | grep -v yml && echo "Hardcoded controller address found in codebase" && exit 1 || echo "No hardcoded controller address found"
.parallel-matrix-config:
parallel:
matrix:
- PH_CUSTOM_PLATFORM: [linux/amd64, darwin/arm64, darwin/amd64, linux/arm64]
build_gui_image:
stage: docker
extends: .build_with_kaniko
variables:
PH_CUSTOM_DOCKER_BUILD_CONTEXT_FOLDER: GUI
PH_DOCKER_IMAGE_PATH: icos/shell-gui
cli-compile:
timeout: 3h
parallel: !reference [.parallel-matrix-config, parallel]
tags:
- platform-$PH_CUSTOM_PLATFORM
extends: .go-job-compile
variables:
PH_GO_SRC_DIR: client
PH_GO_OUTPUT_FILENAME: icosctl
PH_GO_OUTPUT_APPEND_PLATFORM_SLUG: "true"
# cli-lint:
# extends: .go-job-lint
# allow_failure: true
# variables:
# PH_GO_SRC_DIR: client
# cli-test:
# extends: .go-job-test
# allow_failure: true
# variables:
# PH_GO_SRC_DIR: client