Fix branch checking
This commit is contained in:
parent
ea241be07b
commit
c17e34d9c1
14
.drone.yml
14
.drone.yml
@ -7,24 +7,27 @@ steps:
|
|||||||
# Other branches
|
# Other branches
|
||||||
- name: install depends
|
- name: install depends
|
||||||
image: node:18
|
image: node:18
|
||||||
commands:
|
|
||||||
- npm install
|
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
exclude:
|
exclude:
|
||||||
- master
|
- master
|
||||||
|
commands:
|
||||||
|
- npm install
|
||||||
- name: test
|
- name: test
|
||||||
image: node:18
|
image: node:18
|
||||||
commands:
|
|
||||||
- npm run lint
|
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
exclude:
|
exclude:
|
||||||
- master
|
- master
|
||||||
|
commands:
|
||||||
|
- npm run lint
|
||||||
|
|
||||||
# Main branches
|
# Main branches
|
||||||
- name: docker
|
- name: docker
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
from_secret: dockerhub_username
|
from_secret: dockerhub_username
|
||||||
@ -32,6 +35,3 @@ steps:
|
|||||||
from_secret: dockerhub_password
|
from_secret: dockerhub_password
|
||||||
repo: fascinated/beatsaber-overlay
|
repo: fascinated/beatsaber-overlay
|
||||||
tags: latest
|
tags: latest
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
|
Reference in New Issue
Block a user