Add branch checking
This commit is contained in:
parent
566aebd8a4
commit
ea241be07b
22
.drone.yml
22
.drone.yml
@ -4,6 +4,25 @@ name: default
|
||||
ports: [3001]
|
||||
|
||||
steps:
|
||||
# Other branches
|
||||
- name: install depends
|
||||
image: node:18
|
||||
commands:
|
||||
- npm install
|
||||
when:
|
||||
branch:
|
||||
exclude:
|
||||
- master
|
||||
- name: test
|
||||
image: node:18
|
||||
commands:
|
||||
- npm run lint
|
||||
when:
|
||||
branch:
|
||||
exclude:
|
||||
- master
|
||||
|
||||
# Main branches
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
@ -13,3 +32,6 @@ steps:
|
||||
from_secret: dockerhub_password
|
||||
repo: fascinated/beatsaber-overlay
|
||||
tags: latest
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
|
Reference in New Issue
Block a user