File Coverage

blib/lib/continuous/delivery/template.pm
Criterion Covered Total %
statement 7 7 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod 0 1 0.0
total 10 11 90.9


line stmt bran cond sub pod time code
1 1     1   6788 use strict;
  1         3  
  1         36  
2 1     1   7 use warnings;
  1         3  
  1         129  
3             package continuous::delivery::template;
4              
5             our $VERSION = 0.01;
6              
7             =head1 NAME
8              
9             continuous-delivery-template - continuous delivery workflow dockerhub, gitlab, and cpan
10              
11             =head1 DESCRIPTION
12              
13             Perl template application configured to use Gitlab CI/CD service
14             as continuous delivery workflow.
15              
16             On the Perl side, this application template uses Dist::Zilla as building,
17             testing and releasing framework.
18              
19             hack on application code
20             git commit ...
21             git push
22              
23             This will trigger building, testing and publishing the docker image
24             with :ci tag to dockerhub.
25              
26             If all tests pass and you are going to release a new version should
27             use Dist::Zila as follows:
28              
29             dzil release
30              
31             Dist::Zilla will create a new git tag based on version number on
32             lib/continuous/delivery/template.pm file and push the tag to github.
33              
34             Dist::Zilla will publish the release on CPAN, the CPAN will run
35             tests under a variety of platforns and environments throught CPANTESTERS.
36              
37             Before you can upload Perl modules to CPAN you need to create an
38             account on The [Perl programming] Authors Upload Server:
39              
40             =over
41              
42             =item *
43              
44             L
45              
46             =back
47              
48             You need create an account on Docker Hub Container Regitry and configure
49             the following secret variables on Gitlab CI / CD settings:
50              
51             =over
52              
53             =item $DOCKER_USER
54              
55             Your username on hub.docker.com.
56              
57             =item $DOCKER_PASSWORD
58              
59             Your password on hub.docker.com.
60              
61             =back
62              
63             =head2 continuous-delivery-template links
64              
65             =over
66              
67             =item Git Repository:
68              
69             L
70              
71             =item Docker Container Registry:
72              
73             L
74              
75             =item CPAN:
76              
77             L
78              
79             =back
80              
81             =head2 USEFULL DOCUMENTS
82              
83             =over
84              
85             =item *
86              
87             L
88              
89             =item *
90              
91             L
92              
93             =back
94              
95             =cut
96              
97             sub hello {
98 1     1 0 27 return join(' ', "Hello! I'm", __PACKAGE__, "version $VERSION.");
99             }
100              
101             1;