Skip to content

Commit 6801cc2

Browse files
chore: use circleci contexts [skip ci] (#52)
1 parent 5e363c6 commit 6801cc2

File tree

1 file changed

+28
-18
lines changed

1 file changed

+28
-18
lines changed

.circleci/config.yml

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
version: 2.1
2+
23
defaults: &defaults
34
working_directory: ~/java-tracer
45
docker:
@@ -7,6 +8,33 @@ defaults: &defaults
78
username: lumigo
89
password: $DOCKERHUB_PASSWORD
910

11+
workflows:
12+
test-deploy:
13+
jobs:
14+
- test:
15+
context:
16+
- common
17+
- java
18+
filters:
19+
branches:
20+
ignore: master
21+
- integration-test:
22+
context:
23+
- common
24+
- java
25+
filters:
26+
branches:
27+
ignore: master
28+
requires:
29+
- test
30+
- deploy:
31+
context:
32+
- common
33+
- java
34+
filters:
35+
branches:
36+
only: master
37+
1038
commands:
1139
checkout_utils:
1240
description: "Checkout various utilities"
@@ -71,24 +99,6 @@ commands:
7199
- ~/.m2
72100
key: m2-{{ checksum "pom.xml" }}
73101

74-
workflows:
75-
test-deploy:
76-
jobs:
77-
- test:
78-
filters:
79-
branches:
80-
ignore: master
81-
- integration-test:
82-
filters:
83-
branches:
84-
ignore: master
85-
requires:
86-
- test
87-
- deploy:
88-
filters:
89-
branches:
90-
only: master
91-
92102
jobs:
93103
test:
94104
<<: *defaults

0 commit comments

Comments
 (0)