From 908aa48d27b3f98129c2b38ecce8ae22b27b3cb0 Mon Sep 17 00:00:00 2001 From: Louis Bailleau Date: Sun, 21 Apr 2024 14:17:16 +0200 Subject: [PATCH] ci: allow to manually trigger build workflow --- .github/workflows/build.yaml | 5 ++++- Dockerfile | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c096168..0292267 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -4,10 +4,13 @@ on: push: branches: - main + workflow_dispatch: env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} + HUGO_BASEURL: https://bricklou.ovh + PLAUSIBLE_ENDPOINT: https://plausible.bricklou.ovh jobs: build-and-publish: @@ -57,4 +60,4 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} build-args: | - PLAUSIBLE_ENDPOINT=${{ vars.PLAUSIBLE_ENDPOINT }} + PLAUSIBLE_ENDPOINT=${{ env.PLAUSIBLE_ENDPOINT }} diff --git a/Dockerfile b/Dockerfile index 0a05f51..af04e18 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,8 @@ FROM hugomods/hugo:exts as builder ARG HUGO_BASEURL= ENV HUGO_BASEURL=${HUGO_BASEURL} ARG PLAUSIBLE_ENDPOINT -ARG HUGOxPARAMSxPLAUSIBLE_ANALYTICSxENDPOINT="${PLAUSIBLE_ENDPOINT}" +ENV HUGOxPARAMSxPLAUSIBLE_ANALYTICSxENDPOINT="${PLAUSIBLE_ENDPOINT}" +ENV HUGOxPARAMSxPLAUSIBLE_ANALYTICSxDOMAIN="${HUGO_BASEURL}" # Build site COPY . /src