Test all the things in gitlab-ci with docker by example
- 2 minutes readDo you write tests? Or do you skip them because it’s too complicated to run? Or maybe developers on your team just don’t care? You should take a few minutes and set up CI so you can enforce good practices. Good news, you can test all the things automagically in GitLab CI/CD with Docker and very little effort 🤘
Edit: This blog post was re-posted on gitlab.com’s blog 🎉
I gave a presentation at the SagLacIO. This time, it was about gitlab-ci.
Getting started
First, you’ll need an account at GitLab.com. If you don’t already have one, you can open an account with no problem. GitLab’s free tier gives you a ton of features, unlimited free hosted repositories, 2,000 CI build minutes per month, etc. You can even use your own task runners in case you bust that limit.
Useful Links
- GitLab.com
- GitLab CI/CD documentation 📗
- .gitlab-ci.yml documentation 📕
- .gitlab-ci.yml linter ✅
- gitlab-ci nodejs example project
- gitlab-ci Docker example project
- gitlab-ci django example project
- Unity3D Docker project running in gitlab-ci and published to Docker Hub
- How to publish Docker images to Docker Hub from gitlab-ci on Stack Overflow
Here go the slides
Scroll through the slides from my presentation on GitLab CI/CD at SagLacIO, you’ll have fun 🤘

If you have suggestions, feel free to poke me or open an issue.