Compare commits

..

No commits in common. "46b090cab2bce878d04299e2b1dc15ab50a149d0" and "86f9a022302844e1adf7347d8d86af487b69bc23" have entirely different histories.

2 changed files with 5 additions and 17 deletions

View file

@ -1,11 +1,8 @@
pipeline:
build:
image: 'myhugo:0.3'
image: docker.io/gohugoio/hugo
commands:
- 'hugo'
- 'find public -mindepth 1 -not -type d -printf "%P\n" > /tmp/filelist'
- 'tar -cf public.tar.gz --gzip -C public -T /tmp/filelist'
- 'response=$(curl --silent --user $HTTP_USER:$HTTP_PASS --data-binary @public.tar.gz $HTTP_ENDPOINT)'
- 'echo "$response"'
- 'test "$response" = "Success"'
secrets: [ http_user, http_pass, http_endpoint ]
- /usr/bin/hugo
- tar -cf public.tar.gz --gzip -C public -T <(find public -mindepth 1 -not -type d -printf "%P\n")
- curl --user ${http_user}:${http_pass} --binary-data public.tar.gz ${http_endpoint}

View file

@ -1,9 +0,0 @@
FROM debian:bullseye-slim
RUN apt update && \
apt install --yes curl ca-certificates && \
curl --location --output hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.111.3/hugo_extended_0.111.3_linux-amd64.deb && \
apt install --yes ./hugo.deb && \
rm ./hugo.deb && \
apt clean && \
rm -rf /var/lib/apt/lists/*