3 ms·
Usually you annotate the CI file with a container ID, not a Dockerfile, AFAIK.
by choeger 7y ago
Usually you annotate the CI file with a container ID, not a Dockerfile, AFAIK.
- e12e 7y agoHm, 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.
- piaste 7y agoYou 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.