This commit is contained in:
parent
a7ad63b861
commit
8e7902aa7f
1 changed files with 37 additions and 0 deletions
37
.drone.yml
Normal file
37
.drone.yml
Normal file
|
@ -0,0 +1,37 @@
|
|||
kind: pipeline
|
||||
type: docker
|
||||
|
||||
# Check if the game builds
|
||||
# If yes, test if everything is nice
|
||||
# If yes, deploy to vercel
|
||||
|
||||
steps:
|
||||
- name: build-game
|
||||
image: node
|
||||
commands:
|
||||
- yarn build:game
|
||||
- name: build-pwa
|
||||
image: node
|
||||
commands:
|
||||
- yarn build:pwa
|
||||
- name: test
|
||||
image: node
|
||||
commands:
|
||||
- yarn test
|
||||
depends_on:
|
||||
- build-game
|
||||
- build-pwa
|
||||
- name: deploy (production)
|
||||
image: dockette/vercel
|
||||
commands:
|
||||
- vercel -t $VERCEL_TOKEN --scope $VERCEL_SCOPE -c
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
- name: deploy (preview)
|
||||
image: dockette/vercel
|
||||
commands:
|
||||
- vercel -t $VERCEL_TOKEN --scope $VERCEL_SCOPE -c
|
||||
when:
|
||||
branch:
|
||||
- "!main"
|
Reference in a new issue