From 4e21206abbadfa58a75349535c631715ea4d43aa Mon Sep 17 00:00:00 2001 From: lubiana Date: Fri, 13 Dec 2024 12:55:42 +0100 Subject: [PATCH] test --- .forgejo/workflows/demo.yml | 4 ++-- actions/sleep/Dockerfile | 7 +++++++ actions/sleep/README.md | 7 +++++++ actions/sleep/action.yml | 5 +++++ actions/sleep/entrypoint.sh | 4 ++++ 5 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 actions/sleep/Dockerfile create mode 100644 actions/sleep/README.md create mode 100644 actions/sleep/action.yml create mode 100644 actions/sleep/entrypoint.sh diff --git a/.forgejo/workflows/demo.yml b/.forgejo/workflows/demo.yml index 0cfff15..d37fcba 100644 --- a/.forgejo/workflows/demo.yml +++ b/.forgejo/workflows/demo.yml @@ -5,5 +5,5 @@ jobs: name: debug steps: - uses: actions/checkout@v4 - - name: hugo - uses: ./actions/hugo + - name: sleep + uses: ./actions/sleep diff --git a/actions/sleep/Dockerfile b/actions/sleep/Dockerfile new file mode 100644 index 0000000..085d8fb --- /dev/null +++ b/actions/sleep/Dockerfile @@ -0,0 +1,7 @@ +FROM alpine:latest + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +ENTRYPOINT ["/entrypoint.sh"] + diff --git a/actions/sleep/README.md b/actions/sleep/README.md new file mode 100644 index 0000000..c910951 --- /dev/null +++ b/actions/sleep/README.md @@ -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. + + diff --git a/actions/sleep/action.yml b/actions/sleep/action.yml new file mode 100644 index 0000000..f9ebbbd --- /dev/null +++ b/actions/sleep/action.yml @@ -0,0 +1,5 @@ +name: 'sleep' +despriction: 'sleep' +runs: + using: 'docker' + image: 'Dockerfile' diff --git a/actions/sleep/entrypoint.sh b/actions/sleep/entrypoint.sh new file mode 100644 index 0000000..2f7d3db --- /dev/null +++ b/actions/sleep/entrypoint.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +sleep 3 +exit 0