-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathbuild-pack-pipeline.yaml
43 lines (42 loc) · 1.3 KB
/
build-pack-pipeline.yaml
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
extends:
import: classic
file: python/pipeline.yaml
pipelines:
pullRequest:
build:
steps:
- sh: export VERSION=$PREVIEW_VERSION && skaffold build -f skaffold.yaml
name: container-build
postBuild:
steps:
- sh: jx step post build --image $DOCKER_REGISTRY/$ORG/$APP_NAME:$PREVIEW_VERSION
name: post-build
promote:
steps:
- dir: ./charts/preview
steps:
- sh: make preview
name: make-preview
- sh: jx preview --app $APP_NAME --dir ../..
name: jx-preview
release:
build:
preSteps:
- sh: echo "Running unit tests!"
steps:
- sh: export VERSION=`cat VERSION` && skaffold build -f skaffold.yaml
name: container-build
- sh: jx step post build --image $DOCKER_REGISTRY/$ORG/$APP_NAME:\$(cat VERSION)
name: post-build
promote:
steps:
- dir: ./charts/jenkinsx-tutorial
steps:
- sh: jx step changelog --version v\$(cat ../../VERSION)
name: changelog
- comment: release the helm chart
sh: jx step helm release
name: helm-release
- comment: promote through all 'Auto' promotion Environments
sh: jx promote -b --all-auto --timeout 1h --version \$(cat ../../VERSION)
name: jx-promote