index.html.haml 1.08 KB
Newer Older
Kamil Trzcinski's avatar
WIP  
Kamil Trzcinski committed
1
- page_title "Container Registry"
2

3
%hr
4 5

%ul.content-list
6
  %li.light.prepend-top-default
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
    %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
      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)}

22 23
  - if @tags.blank?
    %li
24 25
      .nothing-here-block No images in Container Registry for this project.

26 27
  - else
    .table-holder
28
      %table.table.tags
29 30 31
        %thead
          %tr
            %th Name
32
            %th Image ID
33 34
            %th Size
            %th Created
35
            - if can?(current_user, :update_container_image, @project)
Kamil Trzcinski's avatar
Kamil Trzcinski committed
36
              %th
37

38
        - @tags.each do |tag|
39
          = render 'tag', tag: tag