2022-01-16 10:55:37 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: golang
|
|
|
|
commands:
|
2022-01-16 11:01:41 +00:00
|
|
|
- CGO_ENABLED=0 GOOS=linux go build -o notfall ./
|
2022-01-16 10:55:37 +00:00
|
|
|
- name: docker
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
repo: kekskurse/notfall
|
|
|
|
username: kekskurse
|
|
|
|
password:
|
2022-01-16 11:01:41 +00:00
|
|
|
from_secret: docker_password
|
|
|
|
- name: ssh commands
|
|
|
|
image: appleboy/drone-ssh
|
|
|
|
settings:
|
|
|
|
host: green.keks.cloud
|
|
|
|
username: kekskurse
|
|
|
|
port: 65223
|
|
|
|
key:
|
|
|
|
from_secret: ssh_key
|
|
|
|
script:
|
|
|
|
- cd ~/notfall;sudo docker-compose down
|
|
|
|
- sudo docker pull kekskurse/notfall
|
2022-01-16 11:02:52 +00:00
|
|
|
- cd ~/notfall;sudo docker-compose up -d
|