by scott_hardy · 10y ago · 0 comments
A couple friends and I made something similar for GitHub Pages using Travis CI as our static deployment build-and-deploy host. For example, here's what our .travis.yml looks like: https://github.com/L33T-KR3W/soundcasts-web/blob/master/.tra... and here is the actual deploy command that is being run to `git push` to GitHub Pages: https://github.com/L33T-KR3W/soundcasts-web/blob/master/pack...
The GitLab approach is cleaner and requires less tooling. Nice work!
You can indeed have a fully automated deployment. You could already do this with GitLab CI on an external server (S3 or anything else), but now you don't have to worry about hosting anymore.
We took inspiration from .travis.yml when designing the .gitlab-ci.yml file, but are continuing to add features and configurations that make it possible to work together with other GitLab features such as build artifacts and now Pages.
And custom domain are supported as well. See the bottom of https://pages.gitlab.io
https://www.aerobatic.com/blog/automated-continuous-deployme...
You can also provision a free wildcard SSL cert.
Disclaimer: co-founder of Aerobatic.