Skip to content

Commit

Permalink
Update test-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
markusweigelt authored Dec 14, 2023
1 parent 36fe568 commit 002d7e6
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/test-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository and submodules
- name: Checkout repository
uses: actions/checkout@v3

- name: Prepare
- name: Prepare OCR-D Manager
run: |
# Rename example .env file
mv .env.example .env
Expand All @@ -33,6 +33,20 @@ jobs:
mkdir -p ./ssh
ssh-keygen -t rsa -q -f $MANAGER_KEY -P '' -C 'OCR-D manager key'
- name: Prepare OCR-D Controller
run: |
mkdir -p ./ocrd/controller/.ssh/ ./ocrd/controller/models
wget -O .env.ocrd-controller https://raw.githubusercontent.com/slub/ocrd_controller/master/.env.example
# Set environment variables from .env file
export $(cat .env.ocrd-controller | xargs)
# Add public key of OCR-D Manager
cp ${MANAGER_KEY}.pub ${CONTROLLER_KEYS}
# Add model
wget -P ${CONTROLLER_MODELS} https://ub-backup.bib.uni-mannheim.de/~stweil/tesstrain/frak2021/tessdata_best/frak2021-0.905.traineddata
- name: Docker Compose build
run: docker compose build

Expand Down

0 comments on commit 002d7e6

Please sign in to comment.