try a thing
This commit is contained in:
parent
d030a5d9f7
commit
b2e08cec93
1 changed files with 2 additions and 8 deletions
10
.drone.yml
10
.drone.yml
|
@ -5,14 +5,8 @@ steps:
|
||||||
- name: Download dart sass and hugo
|
- name: Download dart sass and hugo
|
||||||
image: debian:stable-slim
|
image: debian:stable-slim
|
||||||
commands:
|
commands:
|
||||||
- 'apt update'
|
- 'find / -name "Dockerfile"'
|
||||||
- 'apt install -y curl'
|
- 'ls /drone/src'
|
||||||
- 'SASS_URL=$(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 \")'
|
|
||||||
- 'curl $SASS_URL -LO'
|
|
||||||
- 'HUGO_URL=$(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 \")'
|
|
||||||
- 'curl $HUGO_URL -LO'
|
|
||||||
- 'tar -xf dart-sass-*.tar.gz'
|
|
||||||
- 'tar -xf hugo_*_linux-amd64.tar.gz --one-top-level'
|
|
||||||
- name: build and publish docker image
|
- name: build and publish docker image
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
pull: always
|
pull: always
|
||||||
|
|
Loading…
Reference in a new issue