File tree Expand file tree Collapse file tree 2 files changed +28
-3
lines changed Expand file tree Collapse file tree 2 files changed +28
-3
lines changed Original file line number Diff line number Diff line change 1
- FROM alpine:3.7
1
+ FROM scratch
2
2
COPY aws/ /aws
3
3
WORKDIR /aws
Original file line number Diff line number Diff line change @@ -43,19 +43,44 @@ steps:
43
43
all :
44
44
executeForBranch : " '${{SEMVERSION_BRANCH}}' != ''"
45
45
46
- push_image_tag :
46
+ push_image_tag_to_cfcr :
47
47
title : Push image with tag based semver tags
48
48
type : push
49
+ registry : cfcr
49
50
candidate : ${{build_image}}
50
51
tag : " ${{SEMVERSION_TAG}}"
51
52
when :
52
53
condition :
53
54
all :
54
55
executeForTag : " '${{SEMVERSION_TAG}}' != ''"
55
56
56
- push_image_latest :
57
+ push_image_tag_to_dockerhub :
58
+ title : Push image with tag based semver tags
59
+ type : push
60
+ registry : dockerhub
61
+ candidate : ${{build_image}}
62
+ tag : " ${{SEMVERSION_TAG}}"
63
+ when :
64
+ condition :
65
+ all :
66
+ executeForTag : " '${{SEMVERSION_TAG}}' != ''"
67
+
68
+
69
+ push_image_latest_to_cfcf :
70
+ title : Push image with latest tag
71
+ type : push
72
+ registry : cfcr
73
+ candidate : ${{build_image}}
74
+ tag : latest
75
+ when :
76
+ condition :
77
+ all :
78
+ executeForMasterBranch : " '${{CF_BRANCH}}' == 'master'"
79
+
80
+ push_image_latest_to_dockerhub :
57
81
title : Push image with latest tag
58
82
type : push
83
+ registry : dockerhub
59
84
candidate : ${{build_image}}
60
85
tag : latest
61
86
when :
You can’t perform that action at this time.
0 commit comments