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
54 lines (51 loc) · 1.72 KB
/
codefresh-arm.yml
File metadata and controls
54 lines (51 loc) · 1.72 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
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:
title: "Building the image..."
type: build
working_directory: ${{WORKDIR}}
disable_push: true
dockerfile: ./Dockerfile
image_name: ${{IMAGE_NAME}}
tag: ${{CF_SHORT_REVISION}}
push_dev:
type: push
candidate: ${{build_image}}
title: "Pushing 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_master:
type: push
candidate: ${{build_image}}
title: "Pushing 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 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"