Skip to content

Commit f9880f1

Browse files
committed
switch to direct 'docker run' call followed by 'docker cp'
Signed-off-by: Stephan Renatus <[email protected]>
1 parent d172fab commit f9880f1

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

.github/workflows/pull-request.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ jobs:
2121
with:
2222
fetch-depth: 0
2323
- name: pull libraries from DAS
24-
run: docker compose run --quiet-pull eopa-pull
24+
run: |
25+
docker run --name eopa-pull -w /work \
26+
ghcr.io/styrainc/enterprise-opa:latest pull --url=https://expo.styra.com
27+
docker cp eopa-pull:/work/.styra .styra
28+
docker rm -f eopa-pull
2529
env:
2630
EOPA_LICENSE_KEY: ${{ secrets.EOPA_LICENSE_KEY }}
2731
STYRA_DAS_SYSTEM: af5120e033934478bd6dcbd8bfca0c84

docker-compose.yaml

-12
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,6 @@ x-styra-env:
1111
STYRA_DAS_SYSTEM: ${STYRA_DAS_SYSTEM:-}
1212

1313
services:
14-
eopa-pull:
15-
image: ghcr.io/styrainc/enterprise-opa:latest
16-
command:
17-
- pull
18-
- --url=https://${STYRA_DAS_TENANT}.styra.com
19-
working_dir: /work
20-
volumes: *styra-volumes
21-
environment: *styra-env
22-
profiles:
23-
- ci
24-
- tools
25-
2614
opa-ci:
2715
image: ghcr.io/styrainc/enterprise-opa:latest
2816
ports:

0 commit comments

Comments
 (0)