-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodefresh.yaml
46 lines (41 loc) · 899 Bytes
/
codefresh.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
version: "1.0"
stages:
- "clone"
- "build"
- "push"
steps:
clone:
title: "Cloning repository"
type: "git-clone"
repo: "codefresh-plugins/argo-workflow-runner"
revision: "${{CF_BRANCH}}"
git: "github"
stage: "clone"
test:
title: Execute unit tests
image: node:12.18.0
working_directory: ${{clone}}
stage: build
commands:
- yarn install --dev-dependencies
- yarn test
build:
title: "Building Docker image"
type: "build"
image_name: "codefresh/argo-workflow-runner"
working_directory: "${{clone}}"
tag: "${{CF_BRANCH_TAG_NORMALIZED}}"
dockerfile: "Dockerfile"
registry: dockerhub
stage: "build"
push:
title: Pushing to Docker Registry
type: push
stage: push
candidate: '${{build}}'
tag: 'latest'
registry: dockerhub
when:
branch:
only:
- main