-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
37 lines (34 loc) · 947 Bytes
/
.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
---
kind: pipeline
type: docker
name: default
steps:
- name: source
image: alpine:3.11
commands:
- apk add --update --no-cache curl git jq
- LATEST=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r ".tag_name")
- if curl -sfL https://hub.docker.com/v2/repositories/ezkrg/hugo/tags/$LATEST > /dev/null; then echo "tag $LATEST already exist"; exit 78; fi
- git clone -b $LATEST https://github.com/gohugoio/hugo.git
- echo -n "$LATEST,latest" > .tags
- name: release
image: plugins/docker
settings:
username:
from_secret: DHU
password:
from_secret: DHP
repo: ezkrg/hugo
context: hugo
dockerfile: hugo/Dockerfile
build_args:
- HUGO_BUILD_TAGS=extended
when:
event:
- cron
cron:
- nightly
---
kind: signature
hmac: 0871579bd7efbfdc4905b602c9cbc7f050caf61bd5d3429bf5bfe8b9358125e7
...