forked from gary-kim/docker-hugo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
59 lines (56 loc) · 1.4 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
49
50
51
52
53
54
55
56
57
58
59
kind: pipeline
name: build-and-deploy
platform:
os: linux
arch: amd64
steps:
- name: download-hugo
image: docker:git
commands:
- git clone https://github.com/gohugoio/hugo hugo-src
- cd hugo-src && git checkout $(cat ../VERSION)
- name: build-hugo-extended
image: golang:1.13
commands:
- (cd hugo-src && go build -o hugo --tags extended main.go)
- (cd hugo-src && ../tags.sh -extended) > .tags
volumes:
- name: GOPATH
path: /go
environment:
GO111MODULE: on
GOARCH: amd64
GOOS: linux
GOPROXY: https://proxy.golang.org,direct
- name: build-and-deploy-extended-image
image: plugins/docker
settings:
dockerfile: extended.Dockerfile
repo: garykim/hugo
username: garykim
password:
from_secret: docker_password
- name: build-hugo-standard
image: golang:1.13
commands:
- (cd hugo-src && go build -o hugo main.go)
- (cd hugo-src && ../tags.sh) > .tags
volumes:
- name: GOPATH
path: /go
environment:
GO111MODULE: on
GOARCH: amd64
GOOS: linux
GOPROXY: https://proxy.golang.org,direct
- name: build-and-deploy-standard-image
image: plugins/docker
settings:
dockerfile: Dockerfile
repo: garykim/hugo
username: garykim
password:
from_secret: docker_password
volumes:
- name: GOPATH
temp: {}