gitlab-org--gitlab-foss/app/views/projects/container_registry/index.html.haml

40 lines
1.1 KiB
Plaintext
Raw Normal View History

2016-05-08 20:50:30 +00:00
- page_title "Container Registry"
2016-04-18 12:14:40 +00:00
= render "header_title"
2016-05-04 14:17:35 +00:00
%hr
2016-04-18 12:14:40 +00:00
%ul.content-list
- if @tags.blank?
%li
.nothing-here-block No images in Container Registry for this project.
.light.prepend-top-default
%p
A 'container image' is a snapshot of a container.
You can host your container images with GitLab.
%br
To start using container images hosted on GitLab you first need to login:
%pre
%code
docker login #{Gitlab.config.registry.host_port}
%br
2016-05-12 18:03:04 +00:00
Then you are free to create and upload a container image with build and push commands:
%pre
docker build -t #{escape_once(@project.container_registry_repository_url)} .
%br
docker push #{escape_once(@project.container_registry_repository_url)}
2016-04-18 12:14:40 +00:00
- else
.table-holder
2016-05-09 20:32:18 +00:00
%table.table.tags
2016-04-18 12:14:40 +00:00
%thead
%tr
%th Name
%th Image ID
2016-04-18 12:14:40 +00:00
%th Size
%th Created
- if can?(current_user, :update_container_image, @project)
2016-05-12 18:03:04 +00:00
%th
2016-04-18 12:14:40 +00:00
- @tags.each do |tag|
2016-05-09 20:32:18 +00:00
= render 'tag', tag: tag