Grzegorz Bizon
b5b6c7b175
Sanitize container repository path in model class
2017-04-13 11:54:02 +02:00
Grzegorz Bizon
5fbeb73a76
Add method that returns a registry repository location
2017-04-10 12:57:19 +02:00
Grzegorz Bizon
000af87190
Remove redundant code from container registry classes
2017-04-05 14:44:35 +02:00
Grzegorz Bizon
cb2ce8452f
Remove legacy registry tags when deleting a project
2017-04-04 12:57:38 +02:00
Grzegorz Bizon
fd30b3d497
Ensure root container repository when visiting registry
...
Root container repository is a images repository that had been created
before 9.1, before we introduced multi-level images support.
2017-04-03 13:03:16 +02:00
Grzegorz Bizon
6fefa79430
Validate uniqueness of container repository name
2017-04-03 11:51:13 +02:00
Grzegorz Bizon
01280a5ad5
Add missing test example for container repository tags
2017-04-03 10:57:12 +02:00
Grzegorz Bizon
83d1fe9b5a
Add serveral minor improvements to container registry
2017-03-31 15:10:15 +02:00
Grzegorz Bizon
60cdd2bcc8
Add specs for container repository factory method
2017-03-31 12:27:05 +02:00
Grzegorz Bizon
a7466af3a6
Improve code related to removing container image tags
2017-03-31 11:54:09 +02:00
Grzegorz Bizon
7d3d1ec5a7
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.
2017-03-30 15:24:46 +02:00
Grzegorz Bizon
031122eb54
Add container repository create service with specs
2017-03-30 13:31:33 +02:00
Grzegorz Bizon
3bfc05be5e
Use container repository path inside auth service
2017-03-29 13:02:46 +02:00
Grzegorz Bizon
a222486c3e
Rename method for checking tags in container repository
...
This is important because method `empty?` is triggered when validation
happens, and we don't want to make API request to registry when record
is validated.
2017-03-29 12:14:29 +02:00
Grzegorz Bizon
95faf5f5b7
Use new registry path class to match repository project
2017-03-29 12:14:06 +02:00
Grzegorz Bizon
dce706bfcb
Do not require a manifest for container repository
...
Container repository can be empty - no tags or blogs is OK.
2017-03-24 13:47:29 +01:00
Grzegorz Bizon
af42dd29a0
Fix specs for container repository tags
2017-03-24 12:31:34 +01:00
Grzegorz Bizon
3e01fed5cb
Fix Rubocop offenses in container repository code
2017-03-23 14:57:33 +01:00
Grzegorz Bizon
f451173a19
Fix specs for container repository model class
2017-03-23 14:37:17 +01:00
Grzegorz Bizon
01d159b409
Rename container image model to container repository
2017-03-23 14:00:41 +01:00