try another thing

This commit is contained in:
askiiart 2023-09-01 21:55:04 -05:00
parent 3e480d6f7c
commit 2a8821e1d9
No known key found for this signature in database
GPG key ID: 85505F3A2264FA01

View file

@ -7,8 +7,10 @@ steps:
commands: commands:
- 'apt update' - 'apt update'
- 'apt install -y curl' - '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' - '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 $(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' - '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 dart-sass-*.tar.gz'
- 'tar -xf hugo_*_linux-amd64.tar.gz --one-top-level' - 'tar -xf hugo_*_linux-amd64.tar.gz --one-top-level'
- name: build and publish docker image - name: build and publish docker image