-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodefresh.yaml
More file actions
57 lines (57 loc) · 1.4 KB
/
codefresh.yaml
File metadata and controls
57 lines (57 loc) · 1.4 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
version: "1.0"
stages:
- "clone"
- "build"
- "integration"
- "push"
steps:
clone:
type: "git-clone"
description: "Cloning main repository..."
repo: "katapultmedia/codefresh-testing"
revision: "${{CF_BRANCH}}"
stage: "clone"
docker_build:
title: Building My Docker image
type: build
working_directory: '${{CF_REPO_NAME}}'
image_name: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}'
tag: '${{CF_SHORT_REVISION}}'
stage: "build"
approval_for_push:
type: "pending-approval"
title: "Should we run push"
when:
branch:
only:
- "master"
stage: "push"
parallel_push:
type: "parallel"
steps:
annotate_build:
title: "Annotating Build"
image: "${{docker_build}}"
working_directory: "IMAGE_WORK_DIR"
commands:
- "echo Annotating Build..."
on_success:
metadata:
set:
- ${{docker_build.imageId}}:
- CF_QUALITY: true
on_error:
metadata:
set:
- ${{build.imageId}}:
- CF_QUALITY: false
push:
title: "Pushing image to cfcr"
type: "push"
image_name: "katapultmedia/codefresh-testing"
registry: "cfcr"
candidate: "${{docker_build}}"
tags:
- "${{CF_BRANCH_TAG_NORMALIZED}}"
- "${{CF_REVISION}}"
stage: "push"