Skip to content

Commit

Permalink
Set entrypoint to /bin/sh
Browse files Browse the repository at this point in the history
  • Loading branch information
wdbasson committed Jul 25, 2024
1 parent 94e0d44 commit 97831a0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/continuous-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -894,16 +894,21 @@ jobs:
type=registry,ref=ghcr.io/${{ github.repository_owner }}/xk6:latest
cache-to: type=gha,mode=max,scope=build-xk6

- name: Prepare output directory
run: mkdir -p ${{ github.workspace }}/scripts/output && chmod 777 ${{ github.workspace }}/scripts/output

- name: Run k6 tests
run: |
docker run --rm \
-v $(pwd)/scripts/k6:/scripts \
-v ${{ github.workspace }}/scripts/k6:/scripts \
-e CLIENT_ID=${{ secrets.CLIENT_ID }} \
-e GOVERNANCE_CLIENT_ID=${{ secrets.GOVERNANCE_CLIENT_ID }} \
-e CLIENT_SECRET=${{ secrets.CLIENT_SECRET }} \
-e GOVERNANCE_CLIENT_SECRET=${{ secrets.GOVERNANCE_CLIENT_SECRET }} \
-e CLOUDAPI_URL=${{ secrets.CLOUDAPI_URL }} \
-e OAUTH_ENDPOINT=${{ secrets.OAUTH_ENDPOINT }} \
-e GOVERNANCE_OAUTH_ENDPOINT=${{ secrets.GOVERNANCE_OAUTH_ENDPOINT }} \
--entrypoint /bin/sh \
--workdir /scripts \
ghcr.io/${{ github.repository_owner }}/xk6:${{ steps.meta.outputs.version }} \
bash /scripts/run_tests.sh
/scripts/run_tests.sh
2 changes: 1 addition & 1 deletion scripts/k6/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export K6_STATSD_ENABLE_TAGS=true
export SKIP_DELETE_ISSUERS=true
export VUS=5
export ITERATIONS=5
export ISSUER_PREFIX=k6_issuer_dev1
export ISSUER_PREFIX=k6_issuer_dev2
export HOLDER_PREFIX=k6_holder_dev
export SCHEMA_NAME="proof_of_person"
export SCHEMA_VERSION="0.1.0"
10 changes: 5 additions & 5 deletions scripts/k6/run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
source ./env.sh
# ./k6 run --out output-statsd -e SKIP_DELETE_ISSUERS=true -e SKIP_DELETE_HOLDERS=true debug.js
./k6 run -e SKIP_DELETE_ISSUERS=true -e SKIP_DELETE_HOLDERS=true create-holders.js
./k6 run -e SKIP_DELETE_ISSUERS=true -e SKIP_DELETE_HOLDERS=true create-invitation.js
./k6 run -e SKIP_DELETE_ISSUERS=true -e SKIP_DELETE_HOLDERS=true create-credentials.js
./k6 run -e SKIP_DELETE_ISSUERS=true -e SKIP_DELETE_HOLDERS=true create-proof.js
./k6 run -e SKIP_DELETE_ISSUERS=false -e SKIP_DELETE_HOLDERS=false delete-holders.js
xk6 run -e SKIP_DELETE_ISSUERS=true -e SKIP_DELETE_HOLDERS=true create-holders.js
xk6 run -e SKIP_DELETE_ISSUERS=true -e SKIP_DELETE_HOLDERS=true create-invitation.js
xk6 run -e SKIP_DELETE_ISSUERS=true -e SKIP_DELETE_HOLDERS=true create-credentials.js
xk6 run -e SKIP_DELETE_ISSUERS=true -e SKIP_DELETE_HOLDERS=true create-proof.js
xk6 run -e SKIP_DELETE_ISSUERS=false -e SKIP_DELETE_HOLDERS=false delete-holders.js

0 comments on commit 97831a0

Please sign in to comment.