A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
github action improved tagging
Mark Schmitt52640f08d2c9
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.ymlindex 338ae85a9..715474a85 100644--- a/.github/workflows/docker.yml+++ b/.github/workflows/docker.yml@@ -1,32 +1,34 @@-name: Docker+name: dockeron:push:- branches: travis-multiarch-builds+ branches:+ - master+ - dev+ tags:+ - 'ng-*'jobs:- # Build and push image to docker hub.+ # build and push image to docker hub.buildx:runs-on: ubuntu-latest- needs: [tests, documentation, frontend]- if: github.ref == 'refs/heads/github-action-test'steps:- uses: actions/checkout@v2-- name: Prepareid: prepare+ env:+ DOCKER_IMAGE: ${{ secrets.DOCKER_IMAGE }}run: |- DOCKER_IMAGE=moztr/paperless-ngDOCKER_PLATFORMS=linux/amd64,linux/arm/v7,linux/arm64/v8VERSION=edgeif [[ $GITHUB_REF == refs/tags/* ]]; then- VERSION=${GITHUB_REF#refs/tags/v}+ VERSION=${GITHUB_REF#refs/tags/}fi- if [ "${{ github.event_name }}" = "schedule" ]; then- VERSION=nightly+ if [[ $GITHUB_REF == refs/heads/* ]]; then+ VERSION=${GITHUB_REF#refs/heads/}fiTAGS="--tag ${DOCKER_IMAGE}:${VERSION}"- if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then+ if [[ $VERSION == "master" ]]; thenTAGS="$TAGS --tag ${DOCKER_IMAGE}:latest"fiecho ::set-output name=docker_image::${DOCKER_IMAGE}diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.ymlindex 2e2e84e84..12bd3577d 100644--- a/.github/workflows/documentation.yml+++ b/.github/workflows/documentation.yml@@ -24,6 +24,7 @@ jobs:path: ${{ steps.pip-cache.outputs.dir }}key: ${{ runner.os }}-pip3.6.8}- name: dependencies+ # instead of directly installing the dependency in the workflow file, can this be done using the pipfile instead?run: |pip install 'sphinx~=3.3' sphinx_rtd_theme- name: makediff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.ymlindex ad44fb717..66a9a9b0c 100644--- a/.github/workflows/frontend.yml+++ b/.github/workflows/frontend.yml@@ -1,6 +1,6 @@name: frontend-# always run frontend workflow+# always run frontend workflow to see if it builds and tests run fineon: pushjobs:diff --git a/.github/workflows/test.yml b/.github/workflows/test.ymlindex 930f368e7..1a235f763 100644--- a/.github/workflows/test.yml+++ b/.github/workflows/test.yml@@ -8,8 +8,8 @@ jobs:runs-on: ${{ matrix.os }}strategy:matrix:- os: [ubuntu-20.04]- python:+ os: ubuntu-20.04]+ python: # pyenv-action requires the exact version- 3.6.8- 3.7.9- 3.8.6