forked from zincarla/go-image-board
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
48 lines (44 loc) · 1.33 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
workspace:
base: /go
path: src/go-image-board
clone:
git:
image: plugins/git
pipeline:
build:
image: golang:1.10.2
environment:
- GO15VENDOREXPERIMENT=0
- GOOS=linux
- GOARCH=amd64
- CGO_ENABLED=0
commands:
- go get github.com/gorilla/mux
- go get github.com/gorilla/securecookie
- go get github.com/gorilla/sessions
- go get github.com/satori/go.uuid
- go get golang.org/x/crypto/bcrypt
- go get github.com/nfnt/resize
- go get golang.org/x/image/bmp
- go get golang.org/x/image/webp
- go get github.com/go-sql-driver/mysql
- go test
- go build -v -a -installsuffix cgo -o gib .
publish_server:
image: plugins/docker
repo: ziviz/go-image-board
dockerfile: Dockerfile
secrets: [ docker_username, docker_password ]
auto_tag: true
when:
branch: master
event: [push, tag, deployment]
publish_test:
image: plugins/docker
repo: ziviz/go-image-board
dockerfile: Dockerfile
secrets: [ docker_username, docker_password ]
tag: [ testing ]
when:
branch: testing
event: [push, tag]