codefresh 0.84.10 → 0.85.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Dockerfile CHANGED
@@ -10,20 +10,26 @@ ENV PATH="/pyinstaller:$PATH"
10
10
  RUN pip install yq==${YQ_VERSION}
11
11
  RUN pyinstaller --noconfirm --onefile --log-level DEBUG --clean --distpath /tmp/ $(which yq)
12
12
 
13
+ # kubectl binary
14
+ FROM bitnami/kubectl:1.27.4 as kubectl
15
+
13
16
  # Main
14
- FROM node:18.17.1-alpine3.17
17
+ FROM node:18.17.1-alpine3.18
15
18
 
16
- RUN apk --update add --no-cache ca-certificates git curl bash jq
19
+ RUN apk --update add --no-cache \
20
+ bash \
21
+ ca-certificates \
22
+ curl \
23
+ git \
24
+ jq
17
25
 
18
26
  COPY --from=go /go/bin/hub /usr/local/bin/hub
19
27
  COPY --from=yq /tmp/yq /usr/local/bin/yq
28
+ COPY --from=kubectl /opt/bitnami/kubectl/bin/kubectl /usr/local/bin/
20
29
 
21
30
  WORKDIR /cf-cli
22
31
 
23
- COPY package.json /cf-cli
24
- COPY yarn.lock /cf-cli
25
- COPY check-version.js /cf-cli
26
- COPY run-check-version.js /cf-cli
32
+ COPY package.json yarn.lock check-version.js run-check-version.js /cf-cli/
27
33
 
28
34
  RUN yarn install --prod --frozen-lockfile && \
29
35
  yarn cache clean
package/Dockerfile-debian CHANGED
@@ -10,21 +10,30 @@ ENV PATH="/pyinstaller:$PATH"
10
10
  RUN pip install yq==${YQ_VERSION}
11
11
  RUN pyinstaller --noconfirm --onefile --log-level DEBUG --clean --distpath /tmp/ $(which yq)
12
12
 
13
+ # kubectl binary
14
+ FROM bitnami/kubectl:1.27.4 as kubectl
15
+
13
16
  # Main
14
17
  FROM node:18.17.1-bullseye-slim
15
18
 
16
- RUN apt update
17
- RUN apt -y install ca-certificates git curl bash jq busybox && ln -s /bin/busybox /usr/bin/[[
19
+ RUN apt update \
20
+ && apt -y install \
21
+ apt-transport-https \
22
+ bash \
23
+ busybox \
24
+ ca-certificates \
25
+ curl \
26
+ git \
27
+ jq \
28
+ && ln -s /bin/busybox /usr/bin/[[
18
29
 
19
30
  COPY --from=go /go/bin/hub /usr/local/bin/hub
20
31
  COPY --from=yq /tmp/yq /usr/local/bin/yq
32
+ COPY --from=kubectl /opt/bitnami/kubectl/bin/kubectl /usr/local/bin/
21
33
 
22
34
  WORKDIR /cf-cli
23
35
 
24
- COPY package.json /cf-cli
25
- COPY yarn.lock /cf-cli
26
- COPY check-version.js /cf-cli
27
- COPY run-check-version.js /cf-cli
36
+ COPY package.json yarn.lock check-version.js run-check-version.js /cf-cli/
28
37
 
29
38
  RUN yarn install --prod --frozen-lockfile && \
30
39
  yarn cache clean
@@ -10,21 +10,29 @@ ENV PATH="/pyinstaller:$PATH"
10
10
  RUN pip install yq==${YQ_VERSION}
11
11
  RUN pyinstaller --noconfirm --onefile --log-level DEBUG --clean --distpath /tmp/ $(which yq)
12
12
 
13
+ # kubectl binary
14
+ FROM bitnami/kubectl:1.27.4 as kubectl
15
+
13
16
  # Main
14
17
  FROM node:18.17.1-bullseye-slim
15
18
 
16
- RUN apt update
17
- RUN apt -y install ca-certificates git curl bash jq busybox && ln -s /bin/busybox /usr/bin/[[
19
+ RUN apt update \
20
+ && apt -y install \
21
+ bash \
22
+ busybox \
23
+ ca-certificates \
24
+ curl \
25
+ git \
26
+ jq \
27
+ && ln -s /bin/busybox /usr/bin/[[
18
28
 
19
29
  COPY --from=go /go/bin/hub /usr/local/bin/hub
20
30
  COPY --from=yq /tmp/yq /usr/local/bin/yq
31
+ COPY --from=kubectl /opt/bitnami/kubectl/bin/kubectl /usr/local/bin/
21
32
 
22
33
  WORKDIR /cf-cli
23
34
 
24
- COPY package.json /cf-cli
25
- COPY yarn.lock /cf-cli
26
- COPY check-version.js /cf-cli
27
- COPY run-check-version.js /cf-cli
35
+ COPY package.json yarn.lock check-version.js run-check-version.js /cf-cli/
28
36
 
29
37
  RUN yarn install --prod --frozen-lockfile && \
30
38
  yarn cache clean
@@ -38,7 +46,7 @@ RUN ln -s $(pwd)/lib/interface/cli/codefresh /usr/local/bin/codefresh
38
46
  RUN codefresh components update --location components
39
47
 
40
48
  # we keep /root as home directory because cli by default looks for $HOME/.cfconfig
41
- # and we do not want to break user automation if he used to bind his .cfconfig
49
+ # and we do not want to break user automation if they used to bind their .cfconfig
42
50
  # to the /root/.cfconfig
43
51
  RUN useradd -m -d /root -s /bin/sh cfu \
44
52
  && chown -R $(id -g cfu) /root /cf-cli \
@@ -10,20 +10,26 @@ ENV PATH="/pyinstaller:$PATH"
10
10
  RUN pip install yq==${YQ_VERSION}
11
11
  RUN pyinstaller --noconfirm --onefile --log-level DEBUG --clean --distpath /tmp/ $(which yq)
12
12
 
13
+ # kubectl binary
14
+ FROM bitnami/kubectl:1.27.4 as kubectl
15
+
13
16
  # Main
14
- FROM node:18.17.1-alpine3.17
17
+ FROM node:18.17.1-alpine3.18
15
18
 
16
- RUN apk --update add --no-cache ca-certificates git curl bash jq
19
+ RUN apk --update add --no-cache \
20
+ bash \
21
+ ca-certificates \
22
+ curl \
23
+ git \
24
+ jq
17
25
 
18
26
  COPY --from=go /go/bin/hub /usr/local/bin/hub
19
27
  COPY --from=yq /tmp/yq /usr/local/bin/yq
28
+ COPY --from=kubectl /opt/bitnami/kubectl/bin/kubectl /usr/local/bin/
20
29
 
21
30
  WORKDIR /cf-cli
22
31
 
23
- COPY package.json /cf-cli
24
- COPY yarn.lock /cf-cli
25
- COPY check-version.js /cf-cli
26
- COPY run-check-version.js /cf-cli
32
+ COPY package.json yarn.lock check-version.js run-check-version.js /cf-cli/
27
33
 
28
34
  RUN yarn install --prod --frozen-lockfile && \
29
35
  yarn cache clean
@@ -37,7 +43,7 @@ RUN ln -s $(pwd)/lib/interface/cli/codefresh /usr/local/bin/codefresh
37
43
  RUN codefresh components update --location components
38
44
 
39
45
  # we keep /root as home directory because cli by default looks for $HOME/.cfconfig
40
- # and we do not want to break user automation if he used to bind his .cfconfig
46
+ # and we do not want to break user automation if they used to bind their .cfconfig
41
47
  # to the /root/.cfconfig
42
48
  RUN adduser -D -h /root -s /bin/sh cfu \
43
49
  && chown -R $(id -g cfu) /root /cf-cli \
package/codefresh-arm.yml CHANGED
@@ -26,7 +26,7 @@ steps:
26
26
  disable_push: true
27
27
  dockerfile: ./Dockerfile
28
28
  image_name: ${{IMAGE_NAME}}
29
- tag: ${{CF_SHORT_REVISION}}
29
+ tag: ${{CF_BRANCH_TAG_NORMALIZED}}
30
30
 
31
31
  build_image_debian:
32
32
  title: "Building the debian image..."
@@ -35,7 +35,7 @@ steps:
35
35
  disable_push: true
36
36
  dockerfile: ./Dockerfile-debian
37
37
  image_name: ${{IMAGE_NAME}}
38
- tag: ${{CF_SHORT_REVISION}}${{DEBIAN_TAG_POSTFIX}}
38
+ tag: ${{CF_BRANCH_TAG_NORMALIZED}}${{DEBIAN_TAG_POSTFIX}}
39
39
 
40
40
  build_image_alpine_rootless:
41
41
  title: "Building the alpine image..."
@@ -44,7 +44,7 @@ steps:
44
44
  disable_push: true
45
45
  dockerfile: ./Dockerfile-rootless
46
46
  image_name: ${{IMAGE_NAME}}
47
- tag: ${{CF_SHORT_REVISION}}${{ROOTLESS_TAG_POSTFIX}}
47
+ tag: ${{CF_BRANCH_TAG_NORMALIZED}}${{ROOTLESS_TAG_POSTFIX}}
48
48
 
49
49
  build_image_debian_rootless:
50
50
  title: "Building the debian image..."
@@ -53,7 +53,7 @@ steps:
53
53
  disable_push: true
54
54
  dockerfile: ./Dockerfile-debian-rootless
55
55
  image_name: ${{IMAGE_NAME}}
56
- tag: ${{CF_SHORT_REVISION}}${{DEBIAN_TAG_POSTFIX}}${{ROOTLESS_TAG_POSTFIX}}
56
+ tag: ${{CF_BRANCH_TAG_NORMALIZED}}${{DEBIAN_TAG_POSTFIX}}${{ROOTLESS_TAG_POSTFIX}}
57
57
  when:
58
58
  steps:
59
59
  - name: main_clone
@@ -65,7 +65,9 @@ steps:
65
65
  type: push
66
66
  candidate: ${{build_image_alpine}}
67
67
  title: "Pushing alpine image to registry with revision tag"
68
- tag: ${{CF_SHORT_REVISION}}${{ARM_TAG_POSTFIX}}
68
+ tags:
69
+ - ${{CF_BRANCH_TAG_NORMALIZED}}${{ARM_TAG_POSTFIX}}
70
+ - ${{CF_BRANCH_TAG_NORMALIZED}}${{ARM_TAG_POSTFIX}}-${{CF_SHORT_REVISION}}
69
71
  scale:
70
72
  push_quay_dev:
71
73
  registry: "${{REGISTRY_INTEGRATION_QUAY}}"
@@ -87,7 +89,9 @@ steps:
87
89
  type: push
88
90
  candidate: ${{build_image_debian}}
89
91
  title: "Pushing debian image to registry with revision tag"
90
- tag: ${{CF_SHORT_REVISION}}${{DEBIAN_TAG_POSTFIX}}${{ARM_TAG_POSTFIX}}
92
+ tags:
93
+ - ${{CF_BRANCH_TAG_NORMALIZED}}${{DEBIAN_TAG_POSTFIX}}${{ARM_TAG_POSTFIX}}
94
+ - ${{CF_BRANCH_TAG_NORMALIZED}}${{DEBIAN_TAG_POSTFIX}}${{ARM_TAG_POSTFIX}}-${{CF_SHORT_REVISION}}
91
95
  scale:
92
96
  push_quay_dev_debian:
93
97
  registry: "${{REGISTRY_INTEGRATION_QUAY}}"
@@ -109,7 +113,9 @@ steps:
109
113
  type: push
110
114
  candidate: ${{build_image_alpine_rootless}}
111
115
  title: "Pushing rootless alpine image to registry with revision tag"
112
- tag: ${{CF_SHORT_REVISION}}${{ROOTLESS_TAG_POSTFIX}}${{ARM_TAG_POSTFIX}}
116
+ tags:
117
+ - ${{CF_BRANCH_TAG_NORMALIZED}}${{ROOTLESS_TAG_POSTFIX}}${{ARM_TAG_POSTFIX}}
118
+ - ${{CF_BRANCH_TAG_NORMALIZED}}${{ROOTLESS_TAG_POSTFIX}}${{ARM_TAG_POSTFIX}}-${{CF_SHORT_REVISION}}
113
119
  scale:
114
120
  push_quay_dev_rootless:
115
121
  registry: "${{REGISTRY_INTEGRATION_QUAY}}"
@@ -131,7 +137,9 @@ steps:
131
137
  type: push
132
138
  candidate: ${{build_image_debian_rootless}}
133
139
  title: "Pushing rootless debian image to registry with revision tag"
134
- tag: ${{CF_SHORT_REVISION}}${{DEBIAN_TAG_POSTFIX}}${{ROOTLESS_TAG_POSTFIX}}${{ARM_TAG_POSTFIX}}
140
+ tags:
141
+ - ${{CF_BRANCH_TAG_NORMALIZED}}${{DEBIAN_TAG_POSTFIX}}${{ROOTLESS_TAG_POSTFIX}}${{ARM_TAG_POSTFIX}}
142
+ - ${{CF_BRANCH_TAG_NORMALIZED}}${{DEBIAN_TAG_POSTFIX}}${{ROOTLESS_TAG_POSTFIX}}${{ARM_TAG_POSTFIX}}-${{CF_SHORT_REVISION}}
135
143
  scale:
136
144
  push_quay_dev_debian_rootless:
137
145
  registry: "${{REGISTRY_INTEGRATION_QUAY}}"
package/codefresh.yml CHANGED
@@ -111,24 +111,28 @@ steps:
111
111
  type: build
112
112
  dockerfile: Dockerfile
113
113
  image-name: codefresh/cli
114
+ disable_push: true
114
115
  tag: ${{CF_BRANCH_TAG_NORMALIZED}}
115
116
 
116
117
  build_step_debian:
117
118
  type: build
118
119
  dockerfile: Dockerfile-debian
119
120
  image-name: codefresh/cli
121
+ disable_push: true
120
122
  tag: ${{CF_BRANCH_TAG_NORMALIZED}}${{DEBIAN_TAG_POSTFIX}}
121
123
 
122
124
  build_step_alpine_rootless:
123
125
  type: build
124
126
  dockerfile: Dockerfile-rootless
125
127
  image-name: codefresh/cli
128
+ disable_push: true
126
129
  tag: ${{CF_BRANCH_TAG_NORMALIZED}}${{ROOTLESS_TAG_POSTFIX}}
127
130
 
128
131
  build_step_debian_rootless:
129
132
  type: build
130
133
  dockerfile: Dockerfile-debian-rootless
131
134
  image-name: codefresh/cli
135
+ disable_push: true
132
136
  tag: ${{CF_BRANCH_TAG_NORMALIZED}}${{DEBIAN_TAG_POSTFIX}}${{ROOTLESS_TAG_POSTFIX}}
133
137
  when:
134
138
  steps:
@@ -166,7 +170,9 @@ steps:
166
170
  push_step_alpine:
167
171
  stage: push
168
172
  type: push
169
- tag: '${{CF_SHORT_REVISION}}'
173
+ tags:
174
+ - ${{CF_BRANCH_TAG_NORMALIZED}}
175
+ - ${{CF_BRANCH_TAG_NORMALIZED}}-${{CF_SHORT_REVISION}}
170
176
  candidate: ${{build_step_alpine}}
171
177
  scale:
172
178
  push_to_dockerhub:
@@ -186,7 +192,9 @@ steps:
186
192
  push_step_debian:
187
193
  stage: push
188
194
  type: push
189
- tag: '${{CF_SHORT_REVISION}}${{DEBIAN_TAG_POSTFIX}}'
195
+ tags:
196
+ - ${{CF_BRANCH_TAG_NORMALIZED}}${{DEBIAN_TAG_POSTFIX}}
197
+ - ${{CF_BRANCH_TAG_NORMALIZED}}${{DEBIAN_TAG_POSTFIX}}-${{CF_SHORT_REVISION}}
190
198
  candidate: ${{build_step_debian}}
191
199
  scale:
192
200
  push_to_dockerhub_debian:
@@ -206,7 +214,9 @@ steps:
206
214
  push_step_alpine_rootless:
207
215
  stage: push
208
216
  type: push
209
- tag: '${{CF_SHORT_REVISION}}${{ROOTLESS_TAG_POSTFIX}}'
217
+ tags:
218
+ - ${{CF_BRANCH_TAG_NORMALIZED}}${{ROOTLESS_TAG_POSTFIX}}
219
+ - ${{CF_BRANCH_TAG_NORMALIZED}}${{ROOTLESS_TAG_POSTFIX}}-${{CF_SHORT_REVISION}}
210
220
  candidate: ${{build_step_alpine_rootless}}
211
221
  scale:
212
222
  push_to_dockerhub_rootless:
@@ -226,7 +236,9 @@ steps:
226
236
  push_step_debian_rootless:
227
237
  stage: push
228
238
  type: push
229
- tag: '${{CF_SHORT_REVISION}}${{DEBIAN_TAG_POSTFIX}}${{ROOTLESS_TAG_POSTFIX}}'
239
+ tags:
240
+ - ${{CF_BRANCH_TAG_NORMALIZED}}${{DEBIAN_TAG_POSTFIX}}${{ROOTLESS_TAG_POSTFIX}}
241
+ - ${{CF_BRANCH_TAG_NORMALIZED}}${{DEBIAN_TAG_POSTFIX}}${{ROOTLESS_TAG_POSTFIX}}-${{CF_SHORT_REVISION}}
230
242
  candidate: ${{build_step_debian_rootless}}
231
243
  scale:
232
244
  push_to_dockerhub_debian_rootless:
@@ -268,28 +280,28 @@ steps:
268
280
  ignore: [ master ]
269
281
  arguments:
270
282
  tags:
271
- - ${{CF_SHORT_REVISION}}
283
+ - ${{CF_BRANCH_TAG_NORMALIZED}}
272
284
  dev_branches_tags_debian:
273
285
  when:
274
286
  branch:
275
287
  ignore: [ master ]
276
288
  arguments:
277
289
  tags:
278
- - ${{CF_SHORT_REVISION}}${{DEBIAN_TAG_POSTFIX}}
290
+ - ${{CF_BRANCH_TAG_NORMALIZED}}${{DEBIAN_TAG_POSTFIX}}
279
291
  dev_branches_tags_rootless:
280
292
  when:
281
293
  branch:
282
294
  ignore: [ master ]
283
295
  arguments:
284
296
  tags:
285
- - ${{CF_SHORT_REVISION}}${{ROOTLESS_TAG_POSTFIX}}
297
+ - ${{CF_BRANCH_TAG_NORMALIZED}}${{ROOTLESS_TAG_POSTFIX}}
286
298
  dev_branches_tags_debian_rootless:
287
299
  when:
288
300
  branch:
289
301
  ignore: [ master ]
290
302
  arguments:
291
303
  tags:
292
- - ${{CF_SHORT_REVISION}}${{DEBIAN_TAG_POSTFIX}}${{ROOTLESS_TAG_POSTFIX}}
304
+ - ${{CF_BRANCH_TAG_NORMALIZED}}${{DEBIAN_TAG_POSTFIX}}${{ROOTLESS_TAG_POSTFIX}}
293
305
  when:
294
306
  steps:
295
307
  - name: push_step_alpine
@@ -350,7 +362,7 @@ steps:
350
362
  arguments:
351
363
  PIPELINE_ID: 'cli-v1-e2e/root'
352
364
  VARIABLE:
353
- - CLI_VERSION=${{CF_SHORT_REVISION}}
365
+ - CLI_VERSION=${{CF_BRANCH_TAG_NORMALIZED}}-${{CF_SHORT_REVISION}}
354
366
  when:
355
367
  steps:
356
368
  - name: push_step_alpine