feat: Add deploy website test
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
9bdea31ee8
commit
abab24231e
|
@ -0,0 +1,61 @@
|
|||
---
|
||||
# drone encrypt Weko/pdf-editor $AWS_ACCESS_KEY_ID
|
||||
kind: secret
|
||||
name: AWS_ACCESS_KEY_ID
|
||||
data: /saVhwaoFWeXGk4lOiqngq+bF0G+zOiER1SJTP1LNfqddb3wyX/NXW+U380RIXOLr0UFuwCF
|
||||
|
||||
---
|
||||
# drone encrypt Weko/pdf-editor $AWS_SECRET_ACCESS_KEY
|
||||
kind: secret
|
||||
name: AWS_SECRET_ACCESS_KEY
|
||||
data: Wkomm6zPGKFdmBkihm+2up253pBGUOIHueqDlanMD/yyOekI1ss1VYCn4+/7LZ+BC24wQnAtS8n7yDI14zNlbtkINSmbWX087ziBPXKbJ3ovs49TDkCsYwkFp6Y=
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: production
|
||||
|
||||
steps:
|
||||
- name: install npm
|
||||
image: node:current-alpine
|
||||
volumes:
|
||||
- name: assets
|
||||
path: /drone/src/node_modules
|
||||
commands:
|
||||
- npm install --ignore-scripts
|
||||
- npm run test
|
||||
|
||||
- name: build website
|
||||
image: jakejarvis/hugo-extended
|
||||
environment:
|
||||
AWS_ACCESS_KEY_ID:
|
||||
from_secret: AWS_ACCESS_KEY_ID
|
||||
AWS_SECRET_ACCESS_KEY:
|
||||
from_secret: AWS_SECRET_ACCESS_KEY
|
||||
volumes:
|
||||
- name: assets
|
||||
path: /drone/src/node_modules
|
||||
- name: hugo-resources
|
||||
path: /drone/src/resources
|
||||
commands:
|
||||
- hugo --gc --minify
|
||||
- hugo deploy
|
||||
|
||||
- name: notify
|
||||
image: plugins/matrix@sha256:f1affb31b0c86963c97c6f976fa0dcb3cc84272057fd8558d609d28b3064bd7f
|
||||
settings:
|
||||
homeserver: https://converser.eu
|
||||
roomid: "QwOITmkKxRJJyCSDOZ:converser.eu"
|
||||
userid: "resilien:converser.eu"
|
||||
accesstoken:
|
||||
from_secret: MATRIX_ACCESSTOKEN
|
||||
when:
|
||||
status: [ failure ]
|
||||
|
||||
volumes:
|
||||
- name: assets
|
||||
host:
|
||||
path: /tmp/drone/cache/weko/pdf-editor/node_modules
|
||||
- name: hugo-resources
|
||||
host:
|
||||
path: /tmp/drone/cache/weko/pdf-editor/resources
|
|
@ -25,7 +25,7 @@ Le logiciel est en version alpha et donc ne fonctionne pas actuellement. Le but
|
|||
- [ ] Pouvoir ajouter/supprimer/déplacer un dessin
|
||||
- [ ] Pouvoir télécharger le fichier
|
||||
- [ ] Rendre le site léger coté Javascript (minification, suppression du code non utilisé)
|
||||
- [ ] Déployer automatiquement sur https://pdf.weko.io
|
||||
- [x] Déployer automatiquement sur https://pdf.weko.io
|
||||
- [x] Rendre le site multi-langue
|
||||
- [x] Afficher le fichier PDF dans une _modal_
|
||||
- [x] Rendre le site léger coté CSS (minification, suppression du code non utilisé)
|
||||
|
|
|
@ -1,8 +1,13 @@
|
|||
baseURL: http://example.org/
|
||||
baseURL: https://pdf.weko.io/
|
||||
defaultContentLanguage: en
|
||||
defaultContentLanguageInSubdir: true
|
||||
disableKinds: ["taxonomy", "term"]
|
||||
|
||||
deployment:
|
||||
targets:
|
||||
- name: production
|
||||
URL: s3://pdf.weko.io?endpoint=https://s3.garage.resilien.cloud&disableSSL=true&s3ForcePathStyle=true®ion=garage
|
||||
|
||||
params:
|
||||
brand: PDF-Editor
|
||||
|
||||
|
|
Loading…
Reference in New Issue