Hacker News new | ask | show | jobs
by choeger 2346 days ago
Usually you annotate the CI file with a container ID, not a Dockerfile, AFAIK.
2 comments

You can use the Gitlab CI variables so that both the "docker build" job and the "test docker image" job use a unique image ID for your pull request.

Personally I use branch + git tag name as the image tag, but you can use a commit hash or whatever.

Hm, ok. We build containers using ci, but I see how you might want to have a container for running tests. Depends a bit on the language/framework i suppose.