-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
38 lines (34 loc) · 860 Bytes
/
.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
stages:
- build
- test
- pack
- deploy
variables:
HELM_CHART_PATH: ./kubernetes-manifests
build-job:
stage: build
script:
- ./build.sh $* -P eventuateDriver=local
- echo "Build completed"
e2e-test-job:
stage: test
script:
- ./test.sh $* -P eventuateDriver=local
- echo "E2E tests completed"
helm-package-job:
stage: pack
script:
- echo "Building Helm chart..."
- helm lint $HELM_CHART_PATH
- helm package $HELM_CHART_PATH --destination ./helm-packages
- echo "Helm chart built successfully"
deploy-job:
stage: deploy
environment: production
script:
- echo "Deploying application to Kubernetes..."
- kubectl config <context> <cluster>
- helm upgrade --install spring-cicd $HELM_CHART_PATH
- echo "Application successfully deployed."
only:
- master