Commit Graph

16 Commits

Author SHA1 Message Date
Grzegorz Bizon f6a11d00a8 Fix duplicated container repository names 2017-04-18 22:20:47 +02:00
Grzegorz Bizon b5b6c7b175 Sanitize container repository path in model class 2017-04-13 11:54:02 +02:00
Grzegorz Bizon 259108ada3 Fix registry for projects with uppercases in path 2017-04-13 09:20:42 +02:00
Grzegorz Bizon 37ab389139 Revert "Fix registry for projects with uppercases in path"
This reverts commit 22726942fe.
2017-04-13 09:18:46 +02:00
Grzegorz Bizon 22726942fe Fix registry for projects with uppercases in path 2017-04-13 09:11:41 +02:00
Grzegorz Bizon 714c408f22 Add minor improvements to container registry code 2017-04-06 10:23:51 +02:00
Grzegorz Bizon 1c91d52a70 Remove unneeded char in registry repository path 2017-04-04 11:58:15 +02:00
Grzegorz Bizon 97c6cf59b3 Swap method names in containe registry path class 2017-04-04 11:56:32 +02:00
Grzegorz Bizon e10dae3e3c Improve code in container repository path class 2017-04-03 11:44:16 +02:00
Grzegorz Bizon 1a47986b3d Check registry repository name against regexp
This regexp is extracted from Docker Distribution 2.4.1 docs, contains
additional `/` element that can be a separator of components.
2017-04-03 11:38:39 +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 003a51d17a Check container repository exists for a given path 2017-03-30 13:45:54 +02:00
Grzegorz Bizon 06bae00365 Make container repository path code more readable 2017-03-29 12:53:02 +02:00
Grzegorz Bizon 8584798886 Fix rubocop offense in container registry path class 2017-03-29 12:11:38 +02:00
Grzegorz Bizon bdc1e1b9e0 Implement method matching container repository names 2017-03-28 14:57:22 +02:00
Grzegorz Bizon b15d9042e2 Implement container repository path class 2017-03-28 14:34:56 +02:00