Compare commits
2 commits
86f9a02230
...
46b090cab2
Author | SHA1 | Date | |
---|---|---|---|
46b090cab2 | |||
6e15f5a795 |
|
@ -1,8 +1,11 @@
|
||||||
pipeline:
|
pipeline:
|
||||||
build:
|
build:
|
||||||
image: docker.io/gohugoio/hugo
|
image: 'myhugo:0.3'
|
||||||
commands:
|
commands:
|
||||||
- /usr/bin/hugo
|
- 'hugo'
|
||||||
- tar -cf public.tar.gz --gzip -C public -T <(find public -mindepth 1 -not -type d -printf "%P\n")
|
- 'find public -mindepth 1 -not -type d -printf "%P\n" > /tmp/filelist'
|
||||||
- curl --user ${http_user}:${http_pass} --binary-data public.tar.gz ${http_endpoint}
|
- '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 ]
|
||||||
|
|
9
.woodpecker/myhugo.df
Normal file
9
.woodpecker/myhugo.df
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
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/*
|
Loading…
Reference in a new issue