Bad Gitlab registry reference after transfer of project
The project gitlab.com/azae/azae.net build a container in azae/azae.net We moved the repository into a new subgroup: gitlab.com/azae/marketing/azae.net, and restarted last job. The project pushes the container into registry with name azae/azae.net instead of azae/marketing/azae.net. The variable $CI_REGISTRY_IMAGE was not updated after transfer.
.gitlab-ci.yaml
stages:
- build
- deploy
build:
stage: build
image: docker:latest
services:
- docker:dind
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker build -t $CI_REGISTRY_IMAGE .
- docker push $CI_REGISTRY_IMAGE
deploy:
stage: deploy
script:
- curl -X POST -data="" https://deliverous.com/api/v1/trigger/$DELIVEROUS_TRIGGER