Add drone stuff
This commit is contained in:
parent
297a1f4922
commit
44ad280e14
2 changed files with 23 additions and 0 deletions
21
.drone.yml
Normal file
21
.drone.yml
Normal file
|
@ -0,0 +1,21 @@
|
|||
kind: pipeline
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: Download dart sass and hugo
|
||||
image: alpine
|
||||
commands:
|
||||
- curl $(curl -s https://api.github.com/repos/sass/dart-sass/releases/latest | grep "browser_download_url.*dart-sass-.*-linux-x64.tar.gz" | cut -d : -f 2,3 | tr -d \") -LO
|
||||
- curl $(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep "browser_download_url.*hugo_.*_linux-amd64.tar.gz" | head --lines 1 | cut -d : -f 2,3 | tr -d \") -LO
|
||||
- tar -xf dart-sass-*.tar.gz
|
||||
- tar -xf hugo_*_linux-amd64.tar.gz --one-top-level
|
||||
- name: build and publish docker image
|
||||
image: plugins/docker
|
||||
pull: always
|
||||
settings:
|
||||
repo: askiiart/hugo
|
||||
tags: latest
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
|
@ -1,5 +1,7 @@
|
|||
# docker-hugo
|
||||
|
||||
[![Build Status](https://drone.askiiart.net/api/badges/askiiart/docker-hugo/status.svg)](https://drone.askiiart.net/askiiart/docker-hugo)
|
||||
|
||||
Hugo in a Docker container
|
||||
|
||||
## Running
|
||||
|
|
Loading…
Reference in a new issue