parent
efeae4eca7
commit
cac5a65a14
4 changed files with 2 additions and 0 deletions
11
actions/sleep-four/Dockerfile
Normal file
11
actions/sleep-four/Dockerfile
Normal file
|
@ -0,0 +1,11 @@
|
|||
FROM alpine:latest
|
||||
|
||||
RUN apk add --no-cache \
|
||||
openssh \
|
||||
rsync \
|
||||
git
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
7
actions/sleep-four/README.md
Normal file
7
actions/sleep-four/README.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Forgejo-Action for building hugo pages
|
||||
|
||||
This Action builds a hugo site and runs both gzip and brotli on static text files so a properly configured webbrowser can serve those precompressed files
|
||||
|
||||
The compression only works on files in the "public" folder of the actions workdir.
|
||||
|
||||
|
5
actions/sleep-four/action.yml
Normal file
5
actions/sleep-four/action.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
name: 'sleep'
|
||||
despriction: 'sleep'
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
15
actions/sleep-four/entrypoint.sh
Normal file
15
actions/sleep-four/entrypoint.sh
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
apk add --no-cache \
|
||||
brotli \
|
||||
gzip \
|
||||
hugo
|
||||
|
||||
echo 'hello'
|
||||
|
||||
hugo
|
||||
|
||||
sleep 3
|
||||
echo 'slept'
|
||||
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue