We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ffdf6c commit 73a7222Copy full SHA for 73a7222
codefresh.yml
@@ -1,7 +1,7 @@
1
version: '1.0'
2
stages:
3
- clone
4
- - prepare
+ - test
5
- release
6
steps:
7
main_clone:
@@ -12,20 +12,24 @@ steps:
12
revision: "${{CF_REVISION}}"
13
git: github
14
15
+ go_fmt:
16
+ title: 'Formatting'
17
+ stage: test
18
+ image: goreleaser/goreleaser:v0.133
19
+ commands:
20
+ - go fmt
21
+
22
prepare_env_vars:
23
title: 'Preparing environment variables...'
24
stage: prepare
25
image: codefreshio/ci-helpers
26
commands:
27
- source /get-token/get-gh-token.sh
28
- cf_export GITHUB_TOKEN
-
- go_fmt:
- title: 'Formatting'
- stage: prepare
- image: goreleaser/goreleaser:v0.133
- commands:
- - go fmt
29
+ when:
30
+ condition:
31
+ all:
32
+ release: "'${{RELEASE}}' == 'true'"
33
34
release_binaries:
35
title: Create release in Github
0 commit comments