Fix branch checking
This commit is contained in:
parent
ea241be07b
commit
c17e34d9c1
18
.drone.yml
18
.drone.yml
@ -7,24 +7,27 @@ steps:
|
||||
# Other branches
|
||||
- name: install depends
|
||||
image: node:18
|
||||
when:
|
||||
branch:
|
||||
exclude:
|
||||
- master
|
||||
commands:
|
||||
- npm install
|
||||
when:
|
||||
branch:
|
||||
exclude:
|
||||
- master
|
||||
- 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