Hands-on task
Pipeline with artifacts
The project app (cloned to /root/app, the web sign-in is on the GitLab tab) has a build script build.sh: it puts its result into the out/ directory. There's no CI, and a runner is already connected.
Write a .gitlab-ci.yml with a build job in the build stage: it runs ./build.sh and keeps the out/ directory as artifacts. Push to main and get a green pipeline.
Then open the build job in GitLab and download its artifact: it must contain out/release.txt.
- gitlab ci
- artifacts
- yaml
- stages
- pipeline