From 44ad280e1415e0c73e457738035359fec8d4537f Mon Sep 17 00:00:00 2001 From: askiiart Date: Fri, 1 Sep 2023 21:07:08 -0500 Subject: [PATCH] Add drone stuff --- .drone.yml | 21 +++++++++++++++++++++ README.md | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..63f8f9a --- /dev/null +++ b/.drone.yml @@ -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 \ No newline at end of file diff --git a/README.md b/README.md index e4946c7..6250663 100644 --- a/README.md +++ b/README.md @@ -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