-
Notifications
You must be signed in to change notification settings - Fork 2
/
codefresh-arm64.yaml
52 lines (48 loc) · 1.4 KB
/
codefresh-arm64.yaml
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
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
disable_push: true
dockerfile: ./Dockerfile
image_name: ${{IMAGE_NAME}}
tag: ${{CF_BRANCH_TAG_NORMALIZED}}
push_dev:
title: "Pushing image to registry with branch name"
type: push
candidate: ${{build_image}}
tag: ${{CF_BRANCH_TAG_NORMALIZED}}${{ARM_TAG_POSTFIX}}
when:
branch:
ignore: [ master ]
scale:
push_quay_dev:
registry: "${{REGISTRY_INTEGRATION_QUAY}}"
push_dockerhub_dev:
registry: "${{REGISTRY_INTEGRATION_DOCKERHUB}}"
push_gcr_enterprise_dev:
registry: "${{REGISTRY_INTEGRATION_ENTERPRISE}}"
push_master:
title: "Pushing image production tags"
type: push
candidate: ${{build_image}}
when:
branch:
only: [ master ]
tags:
- "${{CF_BRANCH_TAG_NORMALIZED}}${{ARM_TAG_POSTFIX}}"
- "${{VERSION}}${{ARM_TAG_POSTFIX}}"
- "latest${{ARM_TAG_POSTFIX}}"
scale:
push_quay_prod:
registry: "${{REGISTRY_INTEGRATION_QUAY}}"
push_dockerhub_prod:
registry: "${{REGISTRY_INTEGRATION_DOCKERHUB}}"
push_gcr_enterprise_prod:
registry: "${{REGISTRY_INTEGRATION_ENTERPRISE}}"