diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-30 15:24:46 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-30 15:24:46 +0200 |
commit | 7d3d1ec5a7b3ee13397af587c6ecb3a3fc297006 (patch) | |
tree | 9b05a3320cf773196afde017688ef333962add3e /app/models/container_repository.rb | |
parent | 236c9c170374190bcb6dc54a1ca3dddda2d3dcb2 (diff) | |
download | gitlab-ce-7d3d1ec5a7b3ee13397af587c6ecb3a3fc297006.tar.gz |
Create container repository on successful push auth
Because we do not have yet two way communication between container
registry and GitLab, we need to eagerly create a new container
repository objects in database. We now do that after user/build
successfully authenticates a push action using auth service.
Diffstat (limited to 'app/models/container_repository.rb')
-rw-r--r-- | app/models/container_repository.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/container_repository.rb b/app/models/container_repository.rb index 33e2574d389..5663b3db92f 100644 --- a/app/models/container_repository.rb +++ b/app/models/container_repository.rb @@ -60,6 +60,7 @@ class ContainerRepository < ActiveRecord::Base end def self.create_from_path(path) - self.create(project: path.repository_project, name: path.repository_name) + self.create(project: path.repository_project, + name: path.repository_name) end end |