-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
29 lines (24 loc) · 809 Bytes
/
.gitlab-ci.yml
File metadata and controls
29 lines (24 loc) · 809 Bytes
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
image:
name: registry.gitlab.com/gitlab-org/cluster-integration/helm-install-image:helm-3.16.3-kube-1.31.3-alpine-3.21.0
entrypoint: ["/bin/sh", "-c"]
include:
- template: Jobs/Build.gitlab-ci.yml
stages:
- build
- package
variables:
HELM_REPO_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/stable"
before_script:
- apk add --update openssl
package:
stage: package
rules:
- if: '$CI_COMMIT_TAG =~ /^frp-operator-.*$/'
script:
- cd charts/frp-operator
- helm lint
- helm package .
- mv *.tgz ${CI_COMMIT_TAG}.tgz
- helm repo add --username gitlab-ci-token --password ${CI_JOB_TOKEN} ${CI_PROJECT_NAME} ${HELM_REPO_URL}
- helm plugin install https://github.com/chartmuseum/helm-push
- helm cm-push ${CI_COMMIT_TAG}.tgz ${CI_PROJECT_NAME}