___ | | ____| | ___ ___ / _ \| |/ / _` |/ _ \ / __| | (_) | < (_| | (_) | (__ \___/|_|\_\__,_|\___/ \___|
This repo contains a document scanning and archiving solution. Given (scanned) PDF files, it will make them full-text searchable and sorts them based on rules.
You can call make
yourself, or…
Just commit and push a PDF file to the documents repo and let the magic happen. (CI will do it for you.)
There is a Ruby script called sort
which will move files in this
repo based on rules defined in config.yml. Check this file for more
information.
git submodule add [email protected]:200ok-ch/okdoc.git
ln -s okdoc/Makefile Makefile
make install
- Create a new repo on Gitlab
- Add a new bot on Gitlab (Or use an existing bot for your context)
- Impersonate the bot
- Create a Access Token with all permissions
- Exit impersonation
- Make the bot a member of the new repo
- Make the pi-bot a member of the new repo if you want to use the scanner
- Got to “Project > Settings > CI / CD”
- Run
DOCKER_TAG=gitlab.200ok.ch:5050/200ok/documents/ci-runner make build-ci
to build and upload the customer CI runner (change the name to what you want) - Add variable CI_GIT_BOT with the bot’s login
- Add variable DOCKER_TAG with the same DOCKER_TAG as in #9
- Add variable CI_GIT_TOKEN with the bot’s token (Protected and masked)
- Adjust image and bot name in
.gitlab-ci.yml