Skip to content

Commit 0eee666

Browse files
committed
add circleci job for CD of website using now
1 parent 01ec212 commit 0eee666

File tree

1 file changed

+29
-13
lines changed

1 file changed

+29
-13
lines changed

.circleci/config.yml

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
# Check https://circleci.com/docs/2.0/language-java/ for more details
44
#
55
version: 2.1
6-
jobs:
7-
publish_release:
6+
7+
#
8+
# EXECUTORS AND COMMANDS
9+
#
10+
11+
executors:
12+
redux_executor:
813
docker:
914
- image: circleci/openjdk:8-jdk
1015
working_directory: ~/repo
@@ -13,6 +18,9 @@ jobs:
1318
JVM_OPTS: -Xmx3200m
1419
TERM: dumb
1520

21+
jobs:
22+
publish_release:
23+
executor: redux_executor
1624
steps:
1725
- checkout
1826
# Download and cache dependencies
@@ -36,16 +44,7 @@ jobs:
3644

3745

3846
build:
39-
docker:
40-
- image: circleci/openjdk:8-jdk
41-
42-
working_directory: ~/repo
43-
44-
environment:
45-
# Customize the JVM maximum heap limit
46-
JVM_OPTS: -Xmx3200m
47-
TERM: dumb
48-
47+
executor: redux_executor
4948
steps:
5049
- checkout
5150

@@ -66,6 +65,17 @@ jobs:
6665
# run tests!
6766
- run: ./gradlew jvmTest
6867

68+
deploy_website_to_prod:
69+
docker:
70+
- image: circleci/node
71+
working_directory: ~/repo
72+
steps:
73+
- checkout
74+
- run: |
75+
nvm use
76+
npm install now -g
77+
now --token $ZEIT_NOW_TOKEN --prod
78+
6979
workflows:
7080
build_test:
7181
jobs:
@@ -84,4 +94,10 @@ workflows:
8494
branches:
8595
only:
8696
- release
87-
97+
deploy_website:
98+
jobs:
99+
- deploy_website_to_prod:
100+
filters:
101+
branches:
102+
only:
103+
- master

0 commit comments

Comments
 (0)