forked from codefresh-contrib/gitops-secrets-sample-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codefresh.yaml
36 lines (35 loc) · 810 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
version: "1.0"
stages:
- "clone"
- "test"
- "build"
steps:
clone:
title: "Cloning repository"
type: "git-clone"
repo: "codefresh-contrib/gitops-secrets-sample-app"
revision: '${{CF_REVISION}}'
stage: "clone"
lint:
title: "Linting"
type: "freestyle"
image: "golangci/golangci-lint"
working_directory: "${{clone}}"
fail_fast: false
commands:
- "golangci-lint run -v"
environment:
- GOPATH=/codefresh/volume/go
- CGO_ENABLED=0
stage: "test"
build:
title: "Building Docker image"
type: "build"
image_name: "kostiscodefresh/gitops-secrets-sample-app"
working_directory: "${{clone}}"
tags:
- "latest"
- '${{CF_SHORT_REVISION}}'
dockerfile: "Dockerfile"
stage: "build"
registry: dockerhub