From ed2cf1db47bbcc8d97c2328153443cae1c1c3109 Mon Sep 17 00:00:00 2001 From: paul-loedige <59517210+ploedige@users.noreply.github.com> Date: Mon, 11 Nov 2024 23:39:00 +0100 Subject: [PATCH] debugging --- .gitea/workflows/hugo-deploy.yaml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/hugo-deploy.yaml b/.gitea/workflows/hugo-deploy.yaml index 98c3049..45c8953 100644 --- a/.gitea/workflows/hugo-deploy.yaml +++ b/.gitea/workflows/hugo-deploy.yaml @@ -26,9 +26,19 @@ jobs: apt-get install -y hugo - name: Build Hugo Site - run: hugo --minify --config hugo.toml + run: hugo --minify --config hugo.toml -d /output + + # - name: Debug + # run: | + # apt-get install -y tree + # tree / + + # - name: Deploy Hugo Site + # run: | + # docker run --rm \ + # --mount type=bind,source=/var/gitea/hugo-output,target=/output \ + # ubuntu:latest \ + # /bin/bash -c "echo 'This is a test' > /output/index.html" + - name: Deploy Hugo Site + run: docker cp /output/. gitea-runner:/output - - name: Deploy to Hugo Container - run: | - apt-get install -y rsync - rsync -avz --delete public/ /mnt/hugo/ \ No newline at end of file