feat: add preview deploys with netlify (#972)
Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/972 Co-authored-by: konrad <k@knt.li> Co-committed-by: konrad <k@knt.li>
This commit is contained in:
23
.drone.yml
23
.drone.yml
@ -1,8 +1,7 @@
|
||||
---
|
||||
kind: pipeline
|
||||
name: build
|
||||
|
||||
# TODO: update translations only nightly
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
include:
|
||||
@ -138,6 +137,21 @@ steps:
|
||||
- failure
|
||||
- success
|
||||
|
||||
- name: deploy-preview
|
||||
image: node:16
|
||||
pull: true
|
||||
environment:
|
||||
NETLIFY_AUTH_TOKEN:
|
||||
from_secret: netlify_auth_token
|
||||
NETLIFY_SITE_ID:
|
||||
from_secret: netlify_site_id
|
||||
GITEA_TOKEN:
|
||||
from_secret: gitea_token
|
||||
commands:
|
||||
- node ./scripts/deploy-preview-netlify.js
|
||||
depends_on:
|
||||
- build-prod
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: release-latest
|
||||
@ -635,3 +649,8 @@ steps:
|
||||
environment:
|
||||
CROWDIN_KEY:
|
||||
from_secret: crowdin_key
|
||||
---
|
||||
kind: signature
|
||||
hmac: b343ca4448b29bcd26ba9888fa67926040b2f420d891b62e2e74ce487557c58c
|
||||
|
||||
...
|
||||
|
Reference in New Issue
Block a user