This repository has been archived by the owner on Feb 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
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 #11 from matfin/feature/build
Build configuration
- Loading branch information
Showing
5 changed files
with
100 additions
and
1 deletion.
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,49 @@ | ||
machine: | ||
node: | ||
version: 7.9.0 | ||
|
||
dependencies: | ||
pre: | ||
- cd /tmp | ||
- wget https://github.com/gohugoio/hugo/releases/download/v0.22/hugo_0.22_Linux-64bit.deb | ||
- sudo dpkg -i hugo*.deb | ||
- npm install -g gulp | ||
- npm link gulp | ||
- gem install sass | ||
|
||
test: | ||
override: | ||
- npm test | ||
|
||
deployment: | ||
staging: | ||
branch: develop | ||
commands: | ||
- hugo -s ./site -b $HUGO_STAGING_HOST --config=./site/staging.yml -d ../public | ||
- mkdir -p ./public/css | ||
- sass ./assets/sass/main.sass:./public/css/main.css --style compressed --sourcemap=none | ||
- npm install | ||
- gulp | ||
- tar -zcvf public.tar.gz public/ | ||
- scp public.tar.gz $DEPLOY_USER@$DEPLOY_STAGING_HOST:$DEPLOY_STAGING_PATH | ||
- ssh -t $DEPLOY_USER@$DEPLOY_STAGING_HOST " | ||
cd $DEPLOY_STAGING_PATH && | ||
rm -rf public/ && | ||
tar -xvzf public.tar.gz && | ||
mkdir public/.well-known" | ||
|
||
production: | ||
tag: /v[0-9]+(\.[0-9]+)*/ | ||
commands: | ||
- hugo -s ./site -b $HUGO_PRODUCTION_HOST --config=./site/production.yml -d ../public | ||
- mkdir -p ./public/css | ||
- sass ./assets/sass/main.sass:./public/css/main.css --style compressed --sourcemap=none | ||
- npm install | ||
- gulp | ||
- tar -zcvf public-$CIRCLE_TAG.tar.gz public/ | ||
- scp public-$CIRCLE_TAG.tar.gz $DEPLOY_USER@$DEPLOY_PRODUCTION_HOST:$DEPLOY_PRODUCTION_PATH | ||
- ssh -t $DEPLOY_USER@$DEPLOY_PRODUCTION_HOST " | ||
cd $DEPLOY_PRODUCTION_PATH && | ||
rm -rf public/ && | ||
tar -xvzf public-$CIRCLE_TAG.tar.gz && | ||
mkdir public/.well-known" |
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
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,21 @@ | ||
--- | ||
baseUrl: "https://cinematt.photography" | ||
languageCode: "en-ie" | ||
title: "Cinematt" | ||
disableLiveReload: true | ||
watch: false | ||
preservetaxonomynames: true | ||
|
||
params: | ||
description: "Photography website" | ||
author: "Matt Finucane" | ||
cl_media_base: "https://res.cloudinary.com/matt-finucane-portfolio/" | ||
intro_photo: "berlin-expo-messe-nord.md" | ||
|
||
menu: | ||
main: | ||
- name: "About" | ||
identifier: "about" | ||
url: "/about" | ||
weight: 1 | ||
... |
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,22 @@ | ||
--- | ||
baseUrl: "https://staging.cinematt.photography" | ||
languageCode: "en-ie" | ||
title: "[STAGING] Cinematt" | ||
disableLiveReload: true | ||
watch: false | ||
preservetaxonomynames: true | ||
|
||
params: | ||
description: "Photography website" | ||
author: "Matt Finucane" | ||
cl_media_base: "https://res.cloudinary.com/matt-finucane-portfolio/" | ||
intro_photo: "berlin-expo-messe-nord.md" | ||
noindex: true | ||
|
||
menu: | ||
main: | ||
- name: "About" | ||
identifier: "about" | ||
url: "/about" | ||
weight: 1 | ||
... |