2022-07-01 03:16:22 +02:00
|
|
|
kind: pipeline
|
|
|
|
name: deploy
|
|
|
|
steps:
|
|
|
|
- name: docker
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: DOCKER_USERNAME
|
|
|
|
password:
|
|
|
|
from_secret: DOCKER_PASSWORD
|
2022-07-03 02:45:20 +02:00
|
|
|
repo: secondhemd/shbot
|
2022-07-01 03:16:22 +02:00
|
|
|
tags: latest
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- name: docker-build
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: DOCKER_USERNAME
|
|
|
|
password:
|
|
|
|
from_secret: DOCKER_PASSWORD
|
2022-07-03 02:45:20 +02:00
|
|
|
repo: secondhemd/shbot
|
2022-07-01 03:16:22 +02:00
|
|
|
tags: latest
|
|
|
|
dry_run: true
|
|
|
|
when:
|
2022-07-21 17:42:08 +02:00
|
|
|
exclude:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
- push
|
2022-07-03 03:11:36 +02:00
|
|
|
- name: dev docker
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: DOCKER_USERNAME
|
|
|
|
password:
|
|
|
|
from_secret: DOCKER_PASSWORD
|
|
|
|
repo: secondhemd/shbot
|
|
|
|
tags: dev
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- dev
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- name: deploy
|
|
|
|
image: appleboy/drone-ssh
|
|
|
|
settings:
|
|
|
|
host:
|
|
|
|
- s.ar21.de
|
|
|
|
username: root
|
|
|
|
key:
|
|
|
|
from_secret: DEPLOY_SSH_KEY
|
|
|
|
port: 22
|
|
|
|
command_timeout: 2m
|
|
|
|
script:
|
|
|
|
- cd /root && docker-compose pull shbot && docker-compose up -d shbot
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
- push
|
2022-07-03 03:24:56 +02:00
|
|
|
- name: deploy dev
|
|
|
|
image: appleboy/drone-ssh
|
|
|
|
settings:
|
|
|
|
host:
|
|
|
|
- s.ar21.de
|
|
|
|
username: root
|
|
|
|
key:
|
|
|
|
from_secret: DEPLOY_SSH_KEY
|
|
|
|
port: 22
|
|
|
|
command_timeout: 2m
|
|
|
|
script:
|
|
|
|
- cd /root && docker-compose -f shbot-dev.yaml pull shbot-dev && docker-compose -f shbot-dev.yaml up -d shbot-dev
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- dev
|
|
|
|
event:
|
|
|
|
- push
|