Auto devops in kubernetes "invalid reference format"

Hi,

I have been struggling to get a build to execute. I have been trying various options - first I tried with the basic ruby-on-rails app when you create a new project, and then with https://github.com/heroku/heroku-django-template (adding the default auto devops .gitlab-ci.yml from https://gitlab.com/gitlab-org/gitlab-ci-yml/blob/master/Auto-DevOps.gitlab-ci.yml). In all cases I get to a point then get:

...
-----> Discovering process types
Procfile declares types -> web
invalid reference format
ERROR: Job failed: error executing remote command: command terminated with non-zero exit code: Error executing in Docker Container: 1

I tried with nothing in the Procfile but also got the same error (minus the string “web”). I’ll confess that I’m a total n00b with both Gitlab CI and kubernetes but I’m getting the pod to launch and get this far. I will also note that I wasn’t able to get a kubernetes runner to work, but have one on my workstation which gets me this far. Any ideas? Thanks!

1 Like

Just that you know… you’re not alone. I haven’t found a solution yet though…

Running with gitlab-runner 10.0.1 (e991d1b4)
on Rancher Docker Runner (0c718502)
Using Docker executor with image registry.gitlab.com/gitlab-examples/kubernetes-deploy ...
Using docker image sha256:8d46c008a88b841d6ef3a6f9381804a01122aa282de20fce3ca81868fd394319 for predefined container...
Pulling docker image registry.gitlab.com/gitlab-examples/kubernetes-deploy ...
Using docker image registry.gitlab.com/gitlab-examples/kubernetes-deploy ID=sha256:94b90ce9f86870a6ad41b6696878dcd3f3053a34547e55acc90de6c6bdc09735 for build container...
Running on runner-0c718502-project-87-concurrent-0 via 01ba972f5bb8...
Fetching changes...
HEAD is now at b8f185f Set up auto deploy
Checking out b8f185f0 as feature/customdeploy...
Skipping Git submodules setup
$ set -eo pipefail # collapsed multi-line command
$ echo "Checking docker engine..." # collapsed multi-line command
Checking docker engine...
Building application...
Building Dockerfile-based application...
invalid argument ":feature/customdeploy" for t: invalid reference format
See 'docker build --help'.
ERROR: Job failed: exit code 1

I found that I needed to enable the Container Registry for the project.