Skip to content

Commit

Permalink
switch to direct 'docker run' call followed by 'docker cp'
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Renatus <[email protected]>
  • Loading branch information
srenatus committed Jan 26, 2024
1 parent d172fab commit 5ab2d00
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,17 @@ jobs:
with:
fetch-depth: 0
- name: pull libraries from DAS
run: docker compose run --quiet-pull eopa-pull
run: |
docker run --name eopa-pull \
-w /tmp \
-e EOPA_STYRA_DAS_TOKEN \
ghcr.io/styrainc/enterprise-opa:latest pull --url=https://expo.styra.com
docker cp eopa-pull:/tmp/.styra .styra
docker rm -f eopa-pull
env:
EOPA_LICENSE_KEY: ${{ secrets.EOPA_LICENSE_KEY }}
STYRA_DAS_SYSTEM: af5120e033934478bd6dcbd8bfca0c84
STYRA_DAS_TOKEN: ${{ secrets.STYRA_DAS_TOKEN }}
EOPA_STYRA_DAS_TOKEN: ${{ secrets.STYRA_DAS_TOKEN }}
STYRA_DAS_TENANT: expo
- name: setup
run: docker compose --profile ci up --quiet-pull --wait --wait-timeout 300
Expand Down
12 changes: 0 additions & 12 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,6 @@ x-styra-env:
STYRA_DAS_SYSTEM: ${STYRA_DAS_SYSTEM:-}

services:
eopa-pull:
image: ghcr.io/styrainc/enterprise-opa:latest
command:
- pull
- --url=https://${STYRA_DAS_TENANT}.styra.com
working_dir: /work
volumes: *styra-volumes
environment: *styra-env
profiles:
- ci
- tools

opa-ci:
image: ghcr.io/styrainc/enterprise-opa:latest
ports:
Expand Down

0 comments on commit 5ab2d00

Please sign in to comment.