ekster/.drone.yml

53 lines
1.1 KiB
YAML
Raw Normal View History

2019-03-19 21:23:10 +00:00
kind: pipeline
name: default
2018-02-16 21:13:01 +00:00
2019-03-19 21:23:10 +00:00
workspace:
base: /go
path: src/p83.nl/go/ekster
2019-01-12 15:42:29 +00:00
2019-03-19 21:23:10 +00:00
steps:
- name: testing
2020-07-27 20:17:06 +00:00
image: golang:1.14-alpine
2019-08-06 22:07:45 +00:00
environment:
CGO_ENABLED: 0
GOOS: linux
GOARCH: amd64
2019-03-19 21:23:10 +00:00
commands:
- apk --no-cache add git
- go get -d -t ./...
2019-08-06 22:29:03 +00:00
- go build p83.nl/go/ekster/cmd/eksterd
2019-03-19 21:23:10 +00:00
- go test ./...
2019-07-23 18:34:51 +00:00
- name: publish-personal
2019-03-19 21:23:10 +00:00
image: plugins/docker
settings:
repo: registry.stuifzandapp.com/microsub-server
registry: registry.stuifzandapp.com
username:
from_secret: docker_username
password:
from_secret: docker_password
2019-08-06 22:32:24 +00:00
- name: publish-docker
image: plugins/docker
settings:
repo: pstuifzand/ekster
tags:
- alpine
username:
from_secret: docker_official_username
password:
from_secret: docker_official_password
2019-07-23 18:34:51 +00:00
2019-03-19 21:23:10 +00:00
- name: deploy
image: appleboy/drone-ssh
settings:
host: microsub.stuifzandapp.com
username: microsub
ssh_key:
from_secret: ssh_key
script:
- cd /home/microsub/microsub
- docker-compose pull web
- docker-compose up -d