mandelmapper/.drone.yml
steven 85150c2792
All checks were successful
continuous-integration/drone/push Build is passing
Add update production on push
2019-03-05 10:04:48 -07:00

41 lines
847 B
YAML

kind: pipeline
name: default
workspace:
base: /go
path: src/deadbeef.codes/steven/mandelmapper
steps:
- name: build
image: golang
pull: always
environment:
GOOS: linux
GOARCH: amd64
CGO_ENABLED: 0
commands:
- go version
- go get
- go build -a -ldflags '-w'
- name: publish
image: plugins/docker
settings:
repo: registry.deadbeef.codes/mandelmapper
- 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.