-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodefresh.yml
67 lines (59 loc) · 1.46 KB
/
codefresh.yml
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
# More examples of Codefresh YAML can be found at
# https://codefresh.io/docs/docs/yaml-examples/examples/
version: "1.0"
# Stages can help you organize your steps in stages
stages:
- "prepare"
- "build"
steps:
clone:
title: "Cloning repository"
type: "git-clone"
repo: "aperture-sci/loan-app"
revision: "main"
git: "github-1"
stage: "prepare"
lint_backend:
title: "Linting Backend"
type: "freestyle"
image: "golangci/golangci-lint"
working_directory: "${{clone}}/src/interest"
fail_fast: false
commands:
- "golangci-lint run -v"
environment:
- GOPATH=/codefresh/volume/go
- CGO_ENABLED=0
stage: "prepare"
lint_frontend:
title: "Linting frontend"
type: "freestyle"
image: "golangci/golangci-lint"
working_directory: "${{clone}}/src/loan"
fail_fast: false
commands:
- "golangci-lint run -v"
environment:
- GOPATH=/codefresh/volume/go
- CGO_ENABLED=0
stage: "prepare"
build_be:
title: "Building Backend image"
type: "build"
image_name: "kostiscodefresh/interest"
working_directory: "${{clone}}/src/interest"
tag: latest
tags:
- "latest"
dockerfile: "Dockerfile"
stage: "build"
build_fe:
title: "Building Frontend image"
type: "build"
image_name: "kostiscodefresh/loan"
working_directory: "${{clone}}/src/loan"
tag: latest
tags:
- "latest"
dockerfile: "Dockerfile"
stage: "build"