-
Notifications
You must be signed in to change notification settings - Fork 116
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 #305 from chef/schisamo/no-moar-submodules
Switch from using git submodules to ignored folders for www dependencies
- Loading branch information
Showing
3 changed files
with
36 additions
and
8 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
# Hugo | ||
public | ||
|
||
# markdownlint | ||
.markdownlint.json | ||
|
||
# chef-www-acceptance.cd.chef.co content | ||
chef-sh | ||
|
||
# upstream repos | ||
chef-www | ||
site/themes/chef | ||
site/layouts |
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 |
---|---|---|
@@ -1,6 +1,27 @@ | ||
sync: | ||
git submodule update --init --remote --rebase | ||
# we use pushd/popd here, and /bin/sh of our chefes/buildkite image is not bash | ||
# so we have to override the default shell here | ||
SHELL=bash | ||
|
||
chef-www: | ||
git clone https://github.com/chef/chef-www.git chef-www | ||
|
||
site/themes/chef: | ||
git clone https://github.com/chef/chef-hugo-theme.git site/themes/chef | ||
|
||
clean: | ||
rm -rf chef-sh | ||
rm -rf chef-www | ||
rm -rf site/layouts | ||
rm -rf site/themes/chef | ||
|
||
sync: chef-www site/themes/chef | ||
pushd chef-www && git fetch && git reset --hard origin/master && popd | ||
pushd site/themes/chef && git fetch && git reset --hard origin/master && popd | ||
cp -R chef-www/site/layouts site/ | ||
aws --profile chef-cd s3 sync s3://chef-www-acceptance.cd.chef.co chef-sh --delete | ||
|
||
serve: sync | ||
cd site && hugo server --buildDrafts --noHTTPCache | ||
|
||
lint: chef-www site/themes/chef | ||
pushd site && hugo -D && popd |