This repository has been archived on 2023-11-06. You can view files and clone it, but cannot push or open issues or pull requests.
beatsaber-overlay/.drone.yml
Liam f07bcca3a2
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone Build is passing
Update '.drone.yml'
2023-03-26 15:44:24 +01:00

59 lines
1004 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: restore-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
restore: true
mount:
- ./node_modules
- name: install depends
image: node:18
commands:
- npm install
- name: rebuild-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
rebuild: true
mount:
- ./node_modules
# Other branches
- name: test
image: node:18
when:
branch:
exclude:
- main
commands:
- npm run lint
# Main branches
- name: docker
image: plugins/docker
when:
branch:
- main
settings:
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password
repo: fascinated/beatsaber-overlay
tags: latest
volumes:
- name: cache
host:
path: /tmp/cache