From 37881f28cc90da3504785b39028a739d4d970969 Mon Sep 17 00:00:00 2001 From: klmp200 Date: Thu, 1 Jul 2021 21:35:12 +0200 Subject: [PATCH] Docker auto deploy --- .drone.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..8e44f3c --- /dev/null +++ b/.drone.yml @@ -0,0 +1,35 @@ +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: + branch: master + event: push + +# - 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: +# branch: master +# event: push