Skip to content

Commit

Permalink
ci: allow to manually trigger build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Bricklou committed Apr 21, 2024
1 parent a4459ab commit b855d27
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -57,4 +60,5 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
PLAUSIBLE_ENDPOINT=${{ vars.PLAUSIBLE_ENDPOINT }}
HUGO_BASEURL=${{ env.HUGO_BASEURL }}
PLAUSIBLE_ENDPOINT=${{ env.PLAUSIBLE_ENDPOINT }}
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
#####################################################################
FROM hugomods/hugo:exts as builder
# Base URL
ARG HUGO_BASEURL=
ARG HUGO_BASEURL
ENV HUGO_BASEURL=${HUGO_BASEURL}
ARG PLAUSIBLE_ENDPOINT
ARG HUGOxPARAMSxPLAUSIBLE_ANALYTICSxENDPOINT="${PLAUSIBLE_ENDPOINT}"
ENV HUGOxPARAMSxPLAUSIBLE_ANALYTICSxENDPOINT="${PLAUSIBLE_ENDPOINT}"

# Build site
COPY . /src
Expand Down

0 comments on commit b855d27

Please sign in to comment.