Skip to content

Commit

Permalink
GHA: switch to using release bins
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Renatus <[email protected]>
  • Loading branch information
srenatus committed Jan 30, 2024
1 parent 83e01eb commit baff8ac
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,21 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: pull libraries from DAS
- uses: robinraju/[email protected]
with:
repository: StyraInc/enterprise-opa
latest: true
fileName: eopa_Linux_x86_64
- name: prep eopa binary
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
mkdir bin
mv eopa_Linux_x86_64 bin/eopa
chmod +x bin/eopa
echo "$(pwd)/bin" >> $GITHUB_PATH
- name: pull libraries from DAS
run: eopa pull --url=https://expo.styra.com
env:
EOPA_LICENSE_KEY: ${{ secrets.EOPA_LICENSE_KEY }}
STYRA_DAS_SYSTEM: af5120e033934478bd6dcbd8bfca0c84
EOPA_STYRA_DAS_TOKEN: ${{ secrets.STYRA_DAS_TOKEN }}
STYRA_DAS_TENANT: expo
- name: setup
Expand Down
5 changes: 3 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ x-styra-env:
EOPA_STYRA_DAS_TOKEN: ${STYRA_DAS_TOKEN}
STYRA_DAS_TENANT: ${STYRA_DAS_TENANT}
STYRA_DAS_SYSTEM: ${STYRA_DAS_SYSTEM:-}
x-styra-image: &eopa-image ${EOPA_IMAGE:-ghcr.io/styrainc/enterprise-opa:latest}

services:
opa-ci:
image: ghcr.io/styrainc/enterprise-opa:latest
image: *eopa-image
ports:
- "8181:8181"
command:
Expand All @@ -26,7 +27,7 @@ services:
- ci

opa-prod:
image: ghcr.io/styrainc/enterprise-opa:latest
image: *eopa-image
ports:
- "8181:8181"
command:
Expand Down

0 comments on commit baff8ac

Please sign in to comment.