-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
44 lines (40 loc) · 832 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
kind: pipeline
name: default
steps:
- name: install
image: node:20
commands:
- npm i
- name: build
image: node:20
commands:
- npm run build
- name: build docker image
image: plugins/docker
settings:
username:
from_secret: registry-username
password:
from_secret: registry-password
repo: registry.sliceofbits.com/herman
registry: registry.sliceofbits.com/
tags: latest
- name: ssh
image: appleboy/drone-ssh
settings:
host:
- 188.166.107.220
username:
from_secret: ssh_username
password:
from_secret: ssh_password
port: 22
command_timeout: 2m
script:
- cd herman/
- docker-compose pull && docker-compose up -d
when:
branch:
- main
event:
- push