mirror of
https://github.com/supanadit/todo.git
synced 2024-11-10 01:42:20 +00:00
27 lines
536 B
YAML
27 lines
536 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: build-image
|
|
image: plugins/docker
|
|
settings:
|
|
repo: supanadit/todo
|
|
username:
|
|
from_secret: DOCKERUSER
|
|
password:
|
|
from_secret: DOCKERPASS
|
|
|
|
- name: deploy
|
|
image: appleboy/drone-ssh
|
|
settings:
|
|
host: supanadit.com
|
|
username: root
|
|
port: 22
|
|
key:
|
|
from_secret: SECRETKEY
|
|
script:
|
|
- cd /root/Docker/todo
|
|
- docker-compose down
|
|
- docker-compose pull
|
|
- docker-compose up -d |