index.html.haml 1.12 KB
Newer Older
Kamil Trzcinski's avatar
WIP    
Kamil Trzcinski committed
1
- page_title "Container Registry"
Kamil Trzcinski's avatar
Kamil Trzcinski committed
2
3
= render "header_title"

4
%hr
Kamil Trzcinski's avatar
Kamil Trzcinski committed
5
6
7
8

%ul.content-list
  - if @tags.blank?
    %li
9
10
11
12
13
14
15
16
17
18
      .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
Kamil Trzcinski's avatar
Kamil Trzcinski committed
19
            docker login #{Gitlab.config.registry.host}
20
        %br
Kamil Trzcinski's avatar
Kamil Trzcinski committed
21
        Then you are free to create and upload a container image with build and push commands:
22
23
24
25
26
        %pre
          docker build -t #{escape_once(@project.container_registry_repository_url)} .
          %br
          docker push #{escape_once(@project.container_registry_repository_url)}

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

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