-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_spec.yml
70 lines (67 loc) · 2.6 KB
/
build_spec.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: 0.1
component: build
timeoutInSeconds: 1000
shell: bash
env:
exportedVariables:
- buildId
steps:
- type: Command
name: "Calculate buildId"
command: |
buildId=`echo ${OCI_BUILD_RUN_ID} | rev | cut -c 1-6 | rev`
echo "Build ID: $buildId"
- type: Command
name: "helm-ui"
command: |
image_name="eu-frankfurt-1.ocir.io/frsxwtjslf35/warp/helm-ui"
docker build -t $image_name ./helm-ui
image=$(docker images | grep $image_name | awk -F ' ' '{print $3}')
docker tag $image $image_name:$buildId
- type: Command
name: "warp-engine-c2"
command: |
image_name="eu-frankfurt-1.ocir.io/frsxwtjslf35/warp/warp-engine-c2"
docker build -f warp-engine-helidon/warp-engine-c2.Dockerfile -t $image_name ./warp-engine-helidon
image=$(docker images | grep $image_name | awk -F ' ' '{print $3}')
docker tag $image $image_name:$buildId
- type: Command
name: "warp-engine-graal"
command: |
image_name="eu-frankfurt-1.ocir.io/frsxwtjslf35/warp/warp-engine-graal"
docker build -f warp-engine-helidon/warp-engine-graal.Dockerfile -t $image_name ./warp-engine-helidon
image=$(docker images | grep $image_name | awk -F ' ' '{print $3}')
docker tag $image $image_name:$buildId
- type: Command
name: "warp-engine-native"
command: |
image_name="eu-frankfurt-1.ocir.io/frsxwtjslf35/warp/warp-engine-micronaut-native"
cd warp-engine-micronaut
./mvnw package -Dpackaging=docker-native -Pgraalvm
image=$(docker images | grep $image_name | awk -F ' ' '{print $3}')
docker tag $image $image_name:$buildId
outputArtifacts:
- name: helm-ui
type: DOCKER_IMAGE
location: eu-frankfurt-1.ocir.io/frsxwtjslf35/warp/helm-ui
- name: warp-engine-c2
type: DOCKER_IMAGE
location: eu-frankfurt-1.ocir.io/frsxwtjslf35/warp/warp-engine-c2
- name: warp-engine-graal
type: DOCKER_IMAGE
location: eu-frankfurt-1.ocir.io/frsxwtjslf35/warp/warp-engine-graal
- name: warp-engine-micronaut-native
type: DOCKER_IMAGE
location: eu-frankfurt-1.ocir.io/frsxwtjslf35/warp/warp-engine-micronaut-native
- name: helm-ui_yaml
type: BINARY
location: ${OCI_PRIMARY_SOURCE_DIR}/helm-ui/helm-ui.yaml
- name: warp-engine-c2_yaml
type: BINARY
location: ${OCI_PRIMARY_SOURCE_DIR}/warp-engine-helidon/warp-engine-c2.yaml
- name: warp-engine-graal_yaml
type: BINARY
location: ${OCI_PRIMARY_SOURCE_DIR}/warp-engine-helidon/warp-engine-graal.yaml
- name: warp-engine-native_yaml
type: BINARY
location: ${OCI_PRIMARY_SOURCE_DIR}/warp-engine-micronaut/warp-engine-native.yaml