mandelmapper/.drone.yml

41 lines
847 B
YAML
Raw Normal View History

2018-12-23 06:18:12 +00:00
kind: pipeline
name: default
2018-08-02 01:44:17 +00:00
2018-12-23 06:43:16 +00:00
workspace:
base: /go
path: src/deadbeef.codes/steven/mandelmapper
2018-12-23 06:18:12 +00:00
steps:
2018-12-23 06:30:07 +00:00
- name: build
image: golang
pull: always
environment:
GOOS: linux
GOARCH: amd64
CGO_ENABLED: 0
commands:
2018-12-23 06:36:26 +00:00
- go version
- go get
2018-12-23 08:48:14 +00:00
- go build -a -ldflags '-w'
2018-12-23 06:30:07 +00:00
- name: publish
image: plugins/docker
settings:
2019-01-06 01:50:54 +00:00
repo: registry.deadbeef.codes/mandelmapper
2019-03-05 17:04:48 +00:00
- name: production
image: appleboy/drone-ssh
settings:
host: 10.69.71.105
port: 22
username:
from_secret: sshusername
password:
from_secret: sshpassword
script:
- echo Informing spud to pull latest container and infrastructure...
- cd deadbeef.codes-infrastructure
- git pull
- docker-compose pull >/dev/null
- echo Restarting updated services...
- docker-compose up -d >/dev/null
- echo Done.