-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #127 from chnm/preview
Merging ci/cd updates into main
- Loading branch information
Showing
5 changed files
with
44 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: "[relec-website] Build, Release, Deploy" | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- "main" | ||
- "preview" | ||
|
||
jobs: | ||
hugo-build-release-deploy: | ||
uses: chnm/.github/.github/workflows/hugo--build-release-deploy.yml@main | ||
secrets: inherit | ||
with: | ||
container-registry: "ghcr.io" | ||
container-image-name: "relec-website" | ||
hugo-context-root: "." | ||
hugo-devl-url: "http://dev.religiousecologies.org" | ||
hugo-prod-url: "https://religiousecologies.org" | ||
|
||
build-artifact-name: "relec-website" | ||
release-tag-name-type: "iso" | ||
|
||
website-devl-fqdn: "dev.religiousecologies.org" | ||
website-prod-fqdn: "religiousecologies.org" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM klakegg/hugo:0.107.0-ext-alpine as build-stage | ||
|
||
ARG hugobuildargs | ||
ENV HUGO_BUILD_ARGS $hugobuildargs | ||
|
||
RUN apk add npm | ||
|
||
WORKDIR /app | ||
ADD . . | ||
|
||
RUN npm install -y | ||
RUN hugo ${HUGO_BUILD_ARGS} | ||
|
||
FROM nginx:1.23-alpine | ||
|
||
COPY --from=build-stage /app/public/ /usr/share/nginx/html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,5 @@ markup: | |
goldmark: | ||
renderer: | ||
unsafe: true | ||
|
||
timeout: "120s" |
This file was deleted.
Oops, something went wrong.