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

59 lines
1004 B
YAML
Raw Normal View History

2022-10-26 10:12:57 +00:00
kind: pipeline
type: docker
name: default
steps:
2022-10-26 20:28:59 +00:00
- name: restore-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
restore: true
mount:
- ./node_modules
2022-10-26 20:20:32 +00:00
- name: install depends
image: node:18
2022-10-26 20:22:16 +00:00
commands:
- npm install
2022-10-26 20:30:41 +00:00
2022-10-26 20:28:59 +00:00
- name: rebuild-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
rebuild: true
mount:
- ./node_modules
2022-10-26 20:43:57 +00:00
# Other branches
- name: test
image: node:18
when:
branch:
exclude:
- main
commands:
- npm run lint
2022-10-26 20:20:32 +00:00
# Main branches
2022-10-26 11:16:49 +00:00
- name: docker
2022-10-26 11:15:56 +00:00
image: plugins/docker
2022-10-26 20:22:16 +00:00
when:
branch:
- main
2022-10-26 11:15:56 +00:00
settings:
2022-10-26 11:16:49 +00:00
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password
2022-10-26 11:15:56 +00:00
repo: fascinated/beatsaber-overlay
2022-10-26 11:16:49 +00:00
tags: latest
2022-10-26 20:28:59 +00:00
volumes:
- name: cache
host:
path: /tmp/cache