forked from codefresh-io/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodefresh-arm.yml
More file actions
104 lines (97 loc) · 3.61 KB
/
codefresh-arm.yml
File metadata and controls
104 lines (97 loc) · 3.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: "1.0"
steps:
main_clone:
title: 'Cloning main repository...'
type: git-clone
repo: ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}
revision: ${{CF_REVISION}}
git: ${{GIT_CONTEXT}}
build_image:
type: parallel
steps:
build_image_alpine:
title: "Building the alpine image..."
type: build
working_directory: ${{WORKDIR}}
disable_push: true
dockerfile: ./Dockerfile
image_name: ${{IMAGE_NAME}}
tag: ${{CF_SHORT_REVISION}}
build_image_debian:
title: "Building the debian image..."
type: build
working_directory: ${{WORKDIR}}
disable_push: true
dockerfile: ./Dockerfile-debian
image_name: ${{IMAGE_NAME}}
tag: ${{CF_SHORT_REVISION}}${{DEBIAN_TAG_POSTFIX}}
push_dev_alpine:
type: push
candidate: ${{build_image_alpine}}
title: "Pushing alpine image to registry with revision tag"
tag: ${{CF_SHORT_REVISION}}${{ARM_TAG_POSTFIX}}
scale:
push_quay_dev:
registry: "${{REGISTRY_INTEGRATION_QUAY}}"
title: "Pushing image to quay.io registry with revision tag"
push_dockerhub_dev:
registry: "${{REGISTRY_INTEGRATION_DOCKERHUB}}"
title: "Pushing image to dockerhub registry with revision tag"
push_gcr_enterprise_dev:
registry: "${{REGISTRY_INTEGRATION_ENTERPRISE}}"
title: "Pushing image to gcr.io registry with revision tag"
push_dev_debian:
type: push
candidate: ${{build_image_debian}}
title: "Pushing debian image to registry with revision tag"
tag: ${{CF_SHORT_REVISION}}${{DEBIAN_TAG_POSTFIX}}${{ARM_TAG_POSTFIX}}
scale:
push_quay_dev_debian:
registry: "${{REGISTRY_INTEGRATION_QUAY}}"
title: "Pushing image to quay.io registry with revision tag"
push_dockerhub_dev_debian:
registry: "${{REGISTRY_INTEGRATION_DOCKERHUB}}"
title: "Pushing image to dockerhub registry with revision tag"
push_gcr_enterprise_dev_debian:
registry: "${{REGISTRY_INTEGRATION_ENTERPRISE}}"
title: "Pushing image to gcr.io registry with revision tag"
push_master_alpine:
type: push
candidate: ${{build_image_alpine}}
title: "Pushing alpine image with release tag"
when:
branch:
only: [ master ]
tags:
- "${{PACKAGE_VERSION}}${{ARM_TAG_POSTFIX}}"
- "latest${{ARM_TAG_POSTFIX}}"
scale:
push_quay_prod:
registry: "${{REGISTRY_INTEGRATION_QUAY}}"
title: "Pushing alpine image to quay.io registry with release tag"
push_dockerhub_prod:
registry: "${{REGISTRY_INTEGRATION_DOCKERHUB}}"
title: "Pushing image to dockerhub registry with release tag"
push_gcr_enterprise_prod:
registry: "${{REGISTRY_INTEGRATION_ENTERPRISE}}"
title: "Pushing image to gcr.io registry with release tag"
push_master_debian:
type: push
candidate: ${{build_image_debian}}
title: "Pushing debian image with release tag"
when:
branch:
only: [ master ]
tags:
- "${{PACKAGE_VERSION}}${{DEBIAN_TAG_POSTFIX}}${{ARM_TAG_POSTFIX}}"
- "latest${{DEBIAN_TAG_POSTFIX}}${{ARM_TAG_POSTFIX}}"
scale:
push_quay_prod_debian:
registry: "${{REGISTRY_INTEGRATION_QUAY}}"
title: "Pushing image to quay.io registry with release tag"
push_dockerhub_prod_debian:
registry: "${{REGISTRY_INTEGRATION_DOCKERHUB}}"
title: "Pushing image to dockerhub registry with release tag"
push_gcr_enterprise_prod_debian:
registry: "${{REGISTRY_INTEGRATION_ENTERPRISE}}"
title: "Pushing image to gcr.io registry with release tag"