Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
hepplerj committed Aug 26, 2024
2 parents 4b3c336 + 8061694 commit b4f87e6
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 11 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "[ct-website] Build, Release, Deploy"

on:
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: "ct-website"
hugo-context-root: "."
hugo-devl-url: "https://dev.connectingthreads.co.uk"
hugo-prod-url: "https://connectingthreads.co.uk"

build-artifact-name: "ct-website"
release-tag-name-type: "iso"

website-devl-fqdn: "dev.connectingthreads.co.uk"
website-prod-fqdn: "connectingthreads.co.uk"
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM klakegg/hugo:0.107.0-ext-alpine as build-stage

ARG hugobuildargs
ENV HUGO_BUILD_ARGS $hugobuildargs

WORKDIR /app
ADD . .

RUN hugo ${HUGO_BUILD_ARGS}

FROM nginx:1.23-alpine

COPY --from=build-stage /app/public/ /usr/share/nginx/html

7 changes: 0 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,3 @@ preview :

build :
hugo --minify

deploy : hugo
@echo "\nDeploying the site with rsync ..."
rsync --delete --itemize-changes --omit-dir-times \
--checksum -avz --no-t --no-perms --exclude-from=rsync-excludes \
public/ chnmdev:/websites/conthreads/www | egrep -v '^\.'
@echo "Finished deploying the site to dev with rsync."
4 changes: 0 additions & 4 deletions rsync-excludes

This file was deleted.

0 comments on commit b4f87e6

Please sign in to comment.