-
Notifications
You must be signed in to change notification settings - Fork 84
/
config.yml
106 lines (104 loc) · 3.58 KB
/
config.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
version: 2
jobs:
java11-latest:
docker:
- image: circleci/buildpack-deps:18.10-curl-browsers
steps:
- setup_remote_docker
- checkout
- run:
name: Build S2I Java
command: |
cd java/images/centos-java11
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker build -t fabric8/s2i-java:latest-java11 .
docker push fabric8/s2i-java:latest-java11
java-latest:
docker:
- image: circleci/buildpack-deps:18.10-curl-browsers
steps:
- setup_remote_docker
- checkout
- run:
name: Build S2I Java
command: |
cd java/images/centos
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker build -t fabric8/s2i-java:latest .
docker push fabric8/s2i-java:latest
karaf-latest:
docker:
- image: circleci/buildpack-deps:18.10-curl-browsers
steps:
- setup_remote_docker
- checkout
- run:
name: Build S2I Karaf
command: |
cd karaf/images/centos
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker build -t fabric8/s2i-karaf:latest .
docker push fabric8/s2i-karaf:latest
java-tag:
docker:
- image: circleci/buildpack-deps:18.10-curl-browsers
steps:
- setup_remote_docker
- checkout
- run:
name: Build S2I Java for $CIRCLE_TAG
command: |
cd java/images/centos
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker build -t fabric8/s2i-java:${CIRCLE_TAG/#v/}-java8 .
docker push fabric8/s2i-java:${CIRCLE_TAG/#v/}-java8
docker tag fabric8/s2i-java:${CIRCLE_TAG/#v/}-java8 fabric8/s2i-java:$(echo ${CIRCLE_TAG/#v/} | sed -e 's/\.[0-9][0-9]*$//')-java8
docker push fabric8/s2i-java:$(echo ${CIRCLE_TAG/#v/} | sed -e 's/\.[0-9][0-9]*$//')-java8
cd ../centos-java11
docker build -t fabric8/s2i-java:${CIRCLE_TAG/#v/}-java11 .
docker push fabric8/s2i-java:${CIRCLE_TAG/#v/}-java11
docker tag fabric8/s2i-java:${CIRCLE_TAG/#v/}-java11 fabric8/s2i-java:$(echo ${CIRCLE_TAG/#v/} | sed -e 's/\.[0-9][0-9]*$//')-java11
docker push fabric8/s2i-java:$(echo ${CIRCLE_TAG/#v/} | sed -e 's/\.[0-9][0-9]*$//')-java11
karaf-tag:
docker:
- image: circleci/buildpack-deps:18.10-curl-browsers
steps:
- setup_remote_docker
- checkout
- run:
name: Build S2I Karaf for $CIRCLE_TAG
command: |
cd karaf/images/centos
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker build -t fabric8/s2i-karaf:${CIRCLE_TAG/#v/} .
docker push fabric8/s2i-karaf:${CIRCLE_TAG/#v/}
docker tag fabric8/s2i-karaf:${CIRCLE_TAG/#v/} fabric8/s2i-karaf:$(echo ${CIRCLE_TAG/#v/} | sed -e 's/\.[0-9][0-9]*$//')
docker push fabric8/s2i-karaf:$(echo ${CIRCLE_TAG/#v/} | sed -e 's/\.[0-9][0-9]*$//')
workflows:
version: 2
images:
jobs:
- java11-latest:
filters:
branches:
only: master
- java-latest:
filters:
branches:
only: master
- karaf-latest:
filters:
branches:
only: master
- java-tag:
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
- karaf-tag:
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/