Commit 6d2e635c authored by Kamil Trzciński's avatar Kamil Trzciński

Add :latest to imageName if missing

parent c78f056a
......@@ -6,6 +6,7 @@ v 0.6.0 (unreleased)
- Ask about tags and fix prompt to point to ci.gitlab.com
- Pin to specific Docker API version
- Fix docker volume removal issue
- Add :latest to imageName if missing
v 0.5.3
- Pin to specific Docker API version
......
......@@ -74,6 +74,10 @@ func (s *DockerExecutor) getAuthConfig(imageName string) (docker.AuthConfigurati
}
func (s *DockerExecutor) getDockerImage(imageName string) (*docker.Image, error) {
if !strings.Contains(imageName, ":") {
imageName = imageName + ":latest"
}
s.Debugln("Looking for image", imageName, "...")
image, err := s.client.InspectImage(imageName)
if err == nil && !shouldDownloadImage(imageName) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment