feat(gws.fyi): Make website build easier to test

Expose website as a top-level attribute, and ignore index.html, both to
make test-deving the site easier

Change-Id: Ic056446e322ec5f69583d316998103883fc8d55b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2700
Reviewed-by: glittershark <grfn@gws.fyi>
Tested-by: BuildkiteCI
This commit is contained in:
Griffin Smith 2021-03-28 19:54:26 -04:00 committed by glittershark
parent 3678a33327
commit 83a7eaa6fe
2 changed files with 5 additions and 2 deletions

View file

@ -1,2 +1,3 @@
result
letsencrypt
index.html

View file

@ -20,10 +20,12 @@ let
cp ${resume} $out/resume.pdf
'';
in writeShellScript "deploy.sh" ''
in (writeShellScript "deploy.sh" ''
${awscli}/bin/aws --profile personal s3 sync ${website}/ ${bucket}
${awscli}/bin/aws --profile personal cloudfront create-invalidation \
--distribution-id "${distributionID}" \
--paths "/*"
echo "Deployed to http://gws.fyi"
''
'') // {
inherit website;
}