-
Notifications
You must be signed in to change notification settings - Fork 1
/
.kargo.yml
53 lines (49 loc) · 1.3 KB
/
.kargo.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
49
50
51
52
53
name: {{.Project}}
jobs:
- name: build-{{.PR}}
noAgent: true
triggers:
githubHook: true
pipeline:
kind: build
parameters:
command: bash scripts/build.sh
- name: deploy-{{.PR}}
node: {{ .Project }}-{{.PR}}
instance:
health:
port: 80
statusCode: 200
path: /health
triggers:
upstream: build-{{.PR}}
secrets:
vault:
envFolder: deployment
commands:
- TAG=PRE-{{.PR}} deployment/deploy.kargo.sh
{{ if eq .PR "main"}}
- name: release
noAgent: true
triggers:
upstream: deploy-main
pipeline: |
node("build") {
git(branch: 'main', credentialsId: 'lokalise-engineering', url: '[email protected]:lokalise/ce-connector-clevertap.git')
properties([
[$class: 'BuildBlockerProperty', useBuildBlocker: false],
disableConcurrentBuilds(),
])
echo "Release started..."
stage("Create a git tag") {
withCredentials([
string(credentialsId: 'GH_TOKEN', variable: 'GITHUB_TOKEN'),
string(credentialsId: 'DOCKER_PASSWORD', variable: 'REGISTRY_PASSWORD')
]) {
sh '''
docker/scripts/release.sh git_tag $(git rev-parse HEAD)
'''
}
}
}
{{ end }}