Skip to content

Commit 73a7222

Browse files
committed
Update stages
1 parent 7ffdf6c commit 73a7222

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

codefresh.yml

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '1.0'
22
stages:
33
- clone
4-
- prepare
4+
- test
55
- release
66
steps:
77
main_clone:
@@ -12,20 +12,24 @@ steps:
1212
revision: "${{CF_REVISION}}"
1313
git: github
1414

15+
go_fmt:
16+
title: 'Formatting'
17+
stage: test
18+
image: goreleaser/goreleaser:v0.133
19+
commands:
20+
- go fmt
21+
1522
prepare_env_vars:
1623
title: 'Preparing environment variables...'
1724
stage: prepare
1825
image: codefreshio/ci-helpers
1926
commands:
2027
- source /get-token/get-gh-token.sh
2128
- cf_export GITHUB_TOKEN
22-
23-
go_fmt:
24-
title: 'Formatting'
25-
stage: prepare
26-
image: goreleaser/goreleaser:v0.133
27-
commands:
28-
- go fmt
29+
when:
30+
condition:
31+
all:
32+
release: "'${{RELEASE}}' == 'true'"
2933

3034
release_binaries:
3135
title: Create release in Github

0 commit comments

Comments
 (0)