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
|
||||
- name: install depends
|
||||
image: node:18
|
||||
commands:
|
||||
- npm install
|
||||
when:
|
||||
branch:
|
||||
exclude:
|
||||
- master
|
||||
commands:
|
||||
- npm install
|
||||
- name: test
|
||||
image: node:18
|
||||
commands:
|
||||
- npm run lint
|
||||
when:
|
||||
branch:
|
||||
exclude:
|
||||
- master
|
||||
commands:
|
||||
- npm run lint
|
||||
|
||||
# Main branches
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
settings:
|
||||
username:
|
||||
from_secret: dockerhub_username
|
||||
@ -32,6 +35,3 @@ steps:
|
||||
from_secret: dockerhub_password
|
||||
repo: fascinated/beatsaber-overlay
|
||||
tags: latest
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
|
Reference in New Issue
Block a user