Skip to content

Commit

Permalink
ebsi
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeplotean committed Jan 20, 2025
1 parent 0ae1b37 commit 02c6e09
Showing 1 changed file with 47 additions and 11 deletions.
58 changes: 47 additions & 11 deletions .github/workflows/ebsictv3.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,37 @@
name: EBSI Conformance Test v3.2

on:
push:
paths:
- 'waltid-libraries/credentials/**'
- 'waltid-libraries/crypto/**'
- 'waltid-libraries/protocols/**'
- 'waltid-libraries/waltid-did/**'
- 'waltid-services/services/waltid-issuer-api/**'
- '.github/workflows/**'
workflow_call:
inputs:
artifact:
description: "Load image from this artifact (defaults to empty)"
required: false
type: string
path:
description: "Specifies the artifact path (defaults to empty)"
required: false
type: string
tag:
description: "Use this docker image tag (defaults to empty)"
required: false
type: string
# push:
# branches-ignore:
# - main
# paths:
# - 'waltid-libraries/credentials/**'
# - 'waltid-libraries/crypto/**'
# - 'waltid-libraries/protocols/**'
# - 'waltid-libraries/waltid-did/**'
# - 'waltid-services/services/waltid-issuer-api/**'
# - '.github/workflows/**'

jobs:
EBSI-Conformance-Test-v3:
name: Run
runs-on: ubuntu-latest
env:
use-artifact: ${{ inputs.artifact != '' && inputs.path != '' && inputs.tag != '' }}
steps:
- name: The EBSI Conformance Test v3.2 job is starting
run: |
Expand All @@ -32,6 +51,18 @@ jobs:
- name: Docker
run: docker --version

- name: Download artifact
if: ${{ env.use-artifact }}
uses: actions/download-artifact@v4
with:
name: ${{ inputs.artifact }}
path: ${{ inputs.path }}

- name: Load Docker image from tarball
if: ${{ env.use-artifact }}
run: |
docker load --input ${{ inputs.path }}/${{ inputs.artifact }}.tar
- name: Check out repository code
uses: actions/checkout@v4

Expand All @@ -53,9 +84,14 @@ jobs:
sed -i 's|readonly ISSUER_URL=".*"|readonly ISSUER_URL="'"${NGROK_URL}"'"|g' .github/workflows/ebsictv3/EBSICTV3-IssueToHolder.sh
sed -i 's|baseUrl = ".*"|baseUrl = "'"${NGROK_URL}"'"|g' waltid-services/waltid-issuer-api/config/issuer-service.conf
docker build -t waltid/issuer-api:latest -f waltid-services/waltid-issuer-api/Dockerfile .
docker run --net=host -d -v $PWD/waltid-services/waltid-issuer-api/config:/waltid-issuer-api/config --name waltid-issuer-api waltid/issuer-api:latest
image="${{ inputs.tag }}"
if [[ "${{ env.use-artifact }}" != "true" ]]; then
image="waltid/issuer-api:latest"
docker build -t $image -f waltid-services/waltid-issuer-api/Dockerfile .
fi
docker run --net=host -d -v $PWD/waltid-services/waltid-issuer-api/config:/waltid-issuer-api/config --name waltid-issuer-api $image
curl --retry 5 --retry-delay 5 --retry-connrefused http://localhost:7002/livez
Expand Down

0 comments on commit 02c6e09

Please sign in to comment.