-
Notifications
You must be signed in to change notification settings - Fork 111
/
Copy pathcodefresh.yml
31 lines (31 loc) · 866 Bytes
/
codefresh.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
version: '1.0'
steps:
build-jar:
description: build-the-jar
image: "openjdk:jdk"
working_directory: ${{main_clone}}
commands:
- ./gradlew build -x test
build-the-image:
type: build
dockerfile: Dockerfile
description: Builds my service
image_name: antweiss/otoorders
working_directory: ${{main_clone}}
tag: ${{CF_SHORT_REVISION}}
push-the-image:
type: push
candidate: ${{build-the-image}}
tag: ${{CF_SHORT_REVISION}}
push-with-branch-name:
type: push
candidate: ${{build-the-image}}
tag: ${{CF_BRANCH}}
deploy:
image: "otomato/kubectl:alpine"
working-directory: ${{initial-clone}}
commands:
- ls -la
- export KUBECONFIG=./kubeconfig/config
- echo ${KUBECONFIG}
- export KUBECONFIG=./kubeconfig/config && kubectl apply -f orders-dep.yml --validate=false