Skip to content

Commit 8a9aa2b

Browse files
Update codefresh.yaml (#19)
* Update codefresh.yaml * Delete .goreleaser.yml
1 parent 4df2b26 commit 8a9aa2b

File tree

2 files changed

+11
-51
lines changed

2 files changed

+11
-51
lines changed

.goreleaser.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

codefresh.yaml

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,33 @@
11
version: '1.0'
22

33
stages:
4+
- Prepare
45
- Release
56

67
mode: parallel
78

89
steps:
910

10-
CreatingGitTag:
11-
title: Push tag to git
12-
image: codefresh/cli
13-
stage: Release
14-
commands:
15-
- export VERSION=$(cat VERSION)
16-
- export OLD_ORIGIN=$(git remote get-url origin)
17-
- git remote rm origin
18-
- git remote add origin https://${{GITHUB_TOKEN}}@github.com/codefresh-io/go-sdk.git
19-
- git tag v$VERSION
20-
- git push --tags
21-
- git remote rm origin
22-
- git remote add origin $OLD_ORIGIN
23-
fail_fast: false
24-
when:
25-
steps:
26-
- name: main_clone
27-
branch:
28-
only:
29-
- master
11+
main_clone:
12+
stage: Prepare
13+
title: clone repository
14+
type: git-clone
15+
git: cf_github
16+
repo: ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}
17+
revision: ${{CF_BRANCH}}
3018

3119
ReleasingBinaries:
3220
title: Create release in Github
33-
image: goreleaser/goreleaser
21+
image: quay.io/codefresh/golang-ci-helper:latest
3422
stage: Release
35-
fail_fast: false
3623
commands:
3724
- go mod download
38-
- goreleaser release -f .goreleaser.yml --rm-dist --skip-validate
25+
- gh release create --repo ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}} -t $VERSION -n $VERSION $VERSION
3926
when:
4027
steps:
4128
- name: CreatingGitTag
4229
on:
4330
- finished
4431
branch:
4532
only:
46-
- master
33+
- master

0 commit comments

Comments
 (0)