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-14 23:21:02 +00:00
|
|
|
script:
|
2022-01-15 00:28:02 +00:00
|
|
|
- cd ~/kuvia-beta;sudo docker-compowe down kuvia
|
|
|
|
- sudo docker pull kekskurse/kuvia
|
|
|
|
- cd ~/kuvia-beta;sudo docker-compowe up -d kuvia
|