Skip to content

Commit

Permalink
Update stages
Browse files Browse the repository at this point in the history
  • Loading branch information
palson-cf committed May 14, 2020
1 parent 7ffdf6c commit 73a7222
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions codefresh.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '1.0'
stages:
- clone
- prepare
- test
- release
steps:
main_clone:
Expand All @@ -12,20 +12,24 @@ steps:
revision: "${{CF_REVISION}}"
git: github

go_fmt:
title: 'Formatting'
stage: test
image: goreleaser/goreleaser:v0.133
commands:
- go fmt

prepare_env_vars:
title: 'Preparing environment variables...'
stage: prepare
image: codefreshio/ci-helpers
commands:
- source /get-token/get-gh-token.sh
- cf_export GITHUB_TOKEN

go_fmt:
title: 'Formatting'
stage: prepare
image: goreleaser/goreleaser:v0.133
commands:
- go fmt
when:
condition:
all:
release: "'${{RELEASE}}' == 'true'"

release_binaries:
title: Create release in Github
Expand Down

0 comments on commit 73a7222

Please sign in to comment.