-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
48 lines (42 loc) · 1.31 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
image: eclipse-temurin:17
stages:
- build
- package
- helmchart
- changelog
include:
- remote: 'https://gitlab.com/g3476/cliffhanger/-/raw/main/gitlab-ci/cliffhanger.yml'
buildTgz:
only:
- tags
stage: build
script:
- ./gradlew jsBrowserDistribution
- tar -czf plumbeteer.tgz -C build/dist/js/productionExecutable/ .
artifacts:
paths:
- plumbeteer.tgz
expire_in: 1 days
buildDocker:
only:
- tags
stage: package
image: gcr.io/kaniko-project/executor:v1.14.0-debug
script:
- ls
- /kaniko/executor
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
--destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}"
buildHelm:
only:
- tags
stage: helmchart
image: alpine/helm
script:
- helm plugin install https://github.com/chartmuseum/helm-push
- helm package helm/plumbeteer --version "${CI_COMMIT_REF_NAME}" --app-version "${CI_COMMIT_REF_NAME}"
- echo helm repo add --username PRIVATE-TOKEN --password "${NYX_TOKEN}" gitlab "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/main"
- helm repo add --username PRIVATE-TOKEN --password "${NYX_TOKEN}" gitlab "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/main"
- helm repo list
- helm cm-push "plumbeteer-${CI_COMMIT_REF_NAME}.tgz" gitlab