File tree 3 files changed +21
-5
lines changed
3 files changed +21
-5
lines changed Original file line number Diff line number Diff line change
1
+ data :
2
+ - .styra/include
3
+
Original file line number Diff line number Diff line change @@ -3,10 +3,24 @@ x-styra-env:
3
3
&styra-env
4
4
EOPA_LICENSE_KEY : ${EOPA_LICENSE_KEY}
5
5
STYRA_DAS_TOKEN : ${STYRA_DAS_TOKEN}
6
+ EOPA_STYRA_DAS_TOKEN : ${STYRA_DAS_TOKEN}
6
7
STYRA_DAS_TENANT : ${STYRA_DAS_TENANT}
7
8
STYRA_DAS_SYSTEM : ${STYRA_DAS_SYSTEM:-}
8
9
9
10
services :
11
+ eopa-pull :
12
+ image : ghcr.io/styrainc/enterprise-opa:latest
13
+ command :
14
+ - pull
15
+ - --url=https://${STYRA_DAS_TENANT}.styra.com
16
+ working_dir : /work
17
+ volumes : &styra-volumes
18
+ - .styra.yaml:/work/.styra.yaml
19
+ - .styra:/work/.styra
20
+ environment : *styra-env
21
+ profiles :
22
+ - ci
23
+
10
24
opa-ci :
11
25
image : ghcr.io/styrainc/enterprise-opa:latest
12
26
ports :
@@ -15,14 +29,13 @@ services:
15
29
- run
16
30
- --server
17
31
- --addr=:8181
18
- - users:/data/data.json
19
- - /policies/rules/rules.rego
20
- volumes :
21
- - ./opa/:/data
22
- - ./policies/prod/:/policies
32
+ working_dir : /work
33
+ volumes : *styra-volumes
23
34
environment : *styra-env
24
35
profiles :
25
36
- ci
37
+ depends_on :
38
+ - eopa-pull
26
39
27
40
opa-prod :
28
41
image : ghcr.io/styrainc/enterprise-opa:latest
You can’t perform that action at this time.
0 commit comments