-
Notifications
You must be signed in to change notification settings - Fork 2
/
pipeline_config.groovy
42 lines (41 loc) · 1.17 KB
/
pipeline_config.groovy
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
def APP_NAME = "gosquito"
def APP_REPO = "https://github.com/livelace/gosquito.git"
def APP_VERSION = env.VERSION + '-${GIT_COMMIT_SHORT}'
def IMAGE_TAG = env.VERSION == "master" ? "latest" : env.VERSION
libraries {
appimage {
source = "${APP_NAME}"
destination = "${APP_NAME}-${APP_VERSION}.appimage"
}
//dependency_check
//dependency_track {
// project = "${APP_NAME}"
// version = env.VERSION
//}
dracut
git {
repo_url = "${APP_REPO}"
repo_branch = env.VERSION
}
go {
options = "-ldflags=\"-X 'github.com/livelace/gosquito/pkg/gosquito/core.APP_VERSION=${APP_VERSION}'\" " +
"-tags dynamic github.com/livelace/gosquito/cmd/gosquito"
}
harbor_replicate {
policy = "${APP_NAME}"
}
k8s_build {
image = "registry.livelace.ru/dev/gosquito:${IMAGE_TAG}"
force_pull = true
}
kaniko {
destination = "infra/${APP_NAME}:${IMAGE_TAG}"
}
mattermost
nexus {
source = "${APP_NAME}-${APP_VERSION}.appimage"
destination = "raw/${APP_NAME}/${APP_NAME}-${APP_VERSION}.appimage"
ignore_ssl = true
}
//sonarqube
}