forked from resume-unilu/miller
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added VisualEditor support: * T02-04 Implement delete feature: update delete api for document to return a 405 error if the document is attached to a module * JSON Schema: Manage object, array and number types + fix some issues * JSON schema validation for document REST api + generate automatic slug for document * fix issue with the JSON schema validation for document REST api * Manage multiple error messages in the document serializer * Update the schema example * Add service to generate preview + fix the update of document to remove content * Manage 404 error for the generate_snapshot service. * Update README.md * remove SessionAuthentication in Django Reest Api to handle auth correctly from outside miller (with auth bearer) * enable watchmedo autorestart for docker-compose dev * Fix the validation of the json field using the JSON schema * add en_GB for both title and description in the default schema for document payloads. * bump version number to 2.2.0 Co-authored-by: frederic.reis <[email protected]>
- Loading branch information
Showing
16 changed files
with
542 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
DEBUG=True | ||
SECRET_KEY=yoursecretkeyhere | ||
MILLER_DATABASE_NAME= | ||
MILLER_DATABASE_USER= | ||
MILLER_DATABASE_PASSWORD= | ||
REDIS_HOST=localhost | ||
REDIS_PORT=63790 | ||
MILLER_SCHEMA_ROOT=schema | ||
MILLER_DATABASE_NAME=miller | ||
MILLER_DATABASE_USER=miller | ||
MILLER_DATABASE_PASSWORD=miller | ||
REDIS_HOST=redis | ||
REDIS_PORT=6379 | ||
MILLER_SCHEMA_ROOT=/miller/schema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Build and publish Docker image for Release | ||
on: | ||
# Trigger the workflow on push or pull request, | ||
# for the develop branch and all new tags | ||
push: | ||
tags: | ||
- v* | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Fetch Prune Unshallow Tags | ||
run: git fetch --prune --unshallow --tags | ||
- name: Extract branch name | ||
shell: bash | ||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | ||
id: extract_branch | ||
- name: Extract commit hash | ||
shell: bash | ||
run: echo "##[set-output name=hash;]$(git rev-parse --short ${GITHUB_SHA})" | ||
id: extract_hash | ||
- name: Extract latest tag | ||
shell: bash | ||
run: echo "RELEASE_VERSION="$(git describe --tags --abbrev=0 ${GITHUB_SHA}) >> $GITHUB_ENV | ||
- name: Publish to Registry | ||
uses: elgohr/Publish-Docker-Github-Action@master | ||
env: | ||
GIT_BRANCH: ${{ steps.extract_branch.outputs.branch }} | ||
GIT_REVISION: ${{ steps.extract_hash.outputs.hash }} | ||
GIT_TAG: ${{ env.RELEASE_VERSION }} | ||
with: | ||
name: c2dhunilu/miller-v2 | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
buildargs: GIT_BRANCH,GIT_REVISION,GIT_TAG | ||
tags: "${{ env.RELEASE_VERSION }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.