From 3e480d6f7cad62c493beade99c636006cc4880a1 Mon Sep 17 00:00:00 2001 From: askiiart Date: Fri, 1 Sep 2023 21:21:46 -0500 Subject: [PATCH] Update drone config --- .drone.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 63f8f9a..b00ecb8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,12 +3,14 @@ name: default steps: - name: Download dart sass and hugo - image: alpine + image: debian:stable-slim 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 + - 'apt update' + - 'apt install -y curl' + - '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" | 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