forked from ProjectSegfault/website
Fix CI and PRs should be safe now.
This commit is contained in:
parent
ed00d819d9
commit
d99e92d0b3
@ -1,5 +1,7 @@
|
|||||||
pipeline:
|
pipeline:
|
||||||
build:
|
build:
|
||||||
|
when:
|
||||||
|
event: [push, pull_request]
|
||||||
image: node:bullseye-slim
|
image: node:bullseye-slim
|
||||||
commands:
|
commands:
|
||||||
- npm install
|
- npm install
|
||||||
@ -9,7 +11,8 @@ pipeline:
|
|||||||
- rm -rf *
|
- rm -rf *
|
||||||
- mv ../build/* .
|
- mv ../build/* .
|
||||||
push:
|
push:
|
||||||
event: [push, tag, deployment]
|
when:
|
||||||
|
event: [push]
|
||||||
image: appleboy/drone-git-push
|
image: appleboy/drone-git-push
|
||||||
settings:
|
settings:
|
||||||
branch: build
|
branch: build
|
||||||
@ -19,9 +22,9 @@ pipeline:
|
|||||||
commit_message: Successfully built the page.
|
commit_message: Successfully built the page.
|
||||||
ssh_key:
|
ssh_key:
|
||||||
from_secret: ssh_key_git
|
from_secret: ssh_key_git
|
||||||
|
|
||||||
update:
|
update:
|
||||||
event: [push, tag, deployment]
|
when:
|
||||||
|
event: [push]
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
|
Loading…
Reference in New Issue
Block a user