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 29cb46b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 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,4 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
PLAUSIBLE_ENDPOINT=${{ vars.PLAUSIBLE_ENDPOINT }}
PLAUSIBLE_ENDPOINT=${{ env.PLAUSIBLE_ENDPOINT }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ 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}"

# Build site
COPY . /src
Expand Down

0 comments on commit 29cb46b

Please sign in to comment.