kuvia2/.drone.yml

29 lines
630 B
YAML
Raw Normal View History

2022-01-14 23:15:05 +00:00
---
kind: pipeline
type: docker
name: default
steps:
- name: build
image: golang
commands:
- make build
- name: docker
image: plugins/docker
settings:
2022-01-14 23:15:50 +00:00
repo: kekskurse/kuvia
2022-01-14 23:15:05 +00:00
username: kekskurse
password:
2022-01-14 23:21:02 +00:00
from_secret: docker_password
- name: ssh commands
2022-01-14 23:23:11 +00:00
image: appleboy/drone-ssh
settings:
host: green.keks.cloud
username: kekskurse
port: 65223
key:
from_secret: ssh_key
2022-01-15 00:50:48 +00:00
script:
2022-01-15 00:52:34 +00:00
- cd ~/kuvia-beta;sudo docker-compose down kuvia
2022-01-15 00:50:48 +00:00
- sudo docker pull kekskurse/kuvia
2022-01-15 00:52:34 +00:00
- cd ~/kuvia-beta;sudo docker-compose up -d kuvia