2021-07-01 19:35:12 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: publish
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
repo: klmp200/radio-bullshit
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
when:
|
2021-07-01 20:21:58 +00:00
|
|
|
branch: main
|
2021-07-01 19:35:12 +00:00
|
|
|
event: push
|
|
|
|
|
2021-07-01 20:21:01 +00:00
|
|
|
- name: deploy
|
|
|
|
image: appleboy/drone-ssh
|
|
|
|
environment:
|
|
|
|
SSH_PASSWORD:
|
|
|
|
from_secret: ssh_password
|
|
|
|
settings:
|
|
|
|
host:
|
|
|
|
from_secret: ssh_host
|
|
|
|
username:
|
|
|
|
from_secret: ssh_username
|
|
|
|
password:
|
|
|
|
from_secret: ssh_password
|
|
|
|
envs: [ SSH_PASSWORD ]
|
|
|
|
script:
|
|
|
|
- echo $SSH_PASSWORD | sudo -S systemctl restart radio-bullshit
|
|
|
|
when:
|
2021-07-01 20:21:58 +00:00
|
|
|
branch: main
|
2021-07-01 20:21:01 +00:00
|
|
|
event: push
|