diff options
author | Rémy Coutable <remy@rymai.me> | 2016-06-21 13:17:11 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-06-21 13:17:11 +0000 |
commit | 408110f82452cd280311de7d1931fa18196dcecf (patch) | |
tree | a032f35a1bcf2af84ef9d79f16026ced84eb38d5 /lib | |
parent | ed519c161b0de776c7563cb9dd40bdfb5359a901 (diff) | |
parent | 70606bf0c13212eb4dabf4314b783830dd01dbfc (diff) | |
download | gitlab-ce-408110f82452cd280311de7d1931fa18196dcecf.tar.gz |
Merge branch 'show-image-id-on-registry-page' into 'master'
Show proper image ID on registry page
## What does this MR do?
Display the container registry image ID (from the config blob) instead of the first image layer ID
## Are there points in the code the reviewer needs to double check?
## Why was this MR needed?
To show proper image ID on container_registry page.
This only supports manifest V2, since the manifest V1 doesn't expose information about Image ID.
## What are the relevant issue numbers?
Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/18159.
## Screenshots (if relevant)

- [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
- Tests
- [x] Added for this feature/bug
- [ ] All builds are passing
- [ ] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [ ] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)
See merge request !4821
Diffstat (limited to 'lib')
-rw-r--r-- | lib/container_registry/tag.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/container_registry/tag.rb b/lib/container_registry/tag.rb index 7a0929d774e..708d01b95a1 100644 --- a/lib/container_registry/tag.rb +++ b/lib/container_registry/tag.rb @@ -3,6 +3,7 @@ module ContainerRegistry attr_reader :repository, :name delegate :registry, :client, to: :repository + delegate :revision, :short_revision, to: :config_blob, allow_nil: true def initialize(repository, name) @repository, @name = repository, name |