How do I make docker-compose deploy a specific image version for current build instead of the…
Roman Semenov
11

One way is to use environment variables in your docker compose yml file. You could have as image name something like registry.gitlab.com/myproject:$TAG, and then set this $TAG to be the $CI_COMMIT_SHA variable of Gitlab (which is the GIT commit hash) in the variables section of your gitlab-ci.yml.