Skip to content

Commit ff1fdcb

Browse files
author
Oleg Sucharevich
committed
add codefresh yaml
1 parent acf07d2 commit ff1fdcb

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-0
lines changed

.goreleaser.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
builds:
2+
- env:
3+
- CGO_ENABLED=0
4+
goos:
5+
- darwin
6+
- linux
7+
- windows
8+
archive:
9+
replacements:
10+
darwin: Darwin
11+
linux: Linux
12+
windows: Windows
13+
386: i386
14+
amd64: x86_64
15+
format_overrides:
16+
- goos: windows
17+
format: zip
18+
checksum:
19+
name_template: 'checksums.txt'
20+
snapshot:
21+
name_template: "{{ .Tag }}-next"
22+
changelog:
23+
sort: asc
24+
filters:
25+
exclude:
26+
- '^docs:'
27+
- '^test:'

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.0.1

codefresh.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
version: '1.0'
2+
3+
stages:
4+
- Release
5+
6+
mode: parallel
7+
8+
steps:
9+
10+
CreatingGitTag:
11+
title: Push tag to git
12+
image: codefresh/cli
13+
stage: Release
14+
commands:
15+
- cf_export VERSION=$(cat VERSION)
16+
- git remote rm origin
17+
- git remote add origin https://${{GITHUB_TOKEN}}@github.com/codefresh-io/go-sdk.git
18+
- git tag v${{VERSION}}
19+
- git push --tags
20+
fail_fast: false
21+
when:
22+
steps:
23+
- name: main_clone
24+
branch:
25+
only:
26+
- master
27+
28+
ReleasingBinaries:
29+
title: Create release in Github
30+
image: goreleaser/goreleaser
31+
stage: Release
32+
working_directory: /go/src/github.com/codefresh-io/go-sdk
33+
binds:
34+
- ./iris:/go/src/github.com/codefresh-io/go-sdk
35+
fail_fast: false
36+
commands:
37+
- goreleaser release -f .goreleaser.yml --rm-dist --skip-validate
38+
when:
39+
steps:
40+
- name: CreatingGitTag
41+
branch:
42+
only:
43+
- master

0 commit comments

Comments
 (0)