Skip to content

Commit 1a36d66

Browse files
committed
added RELEASE_VERSION- conflict with goreleaser env variable
1 parent c37e336 commit 1a36d66

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.circleci/config.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,16 @@ jobs:
5757
command: |
5858
set +e
5959
source version
60-
export VERSION;
61-
VERSION=$VERSION.${CIRCLE_BUILD_NUM}
62-
export VERSION;
63-
echo $VERSION
60+
export RELEASE_VERSION;
61+
RELEASE_VERSION=$RELEASE_VERSION.${CIRCLE_BUILD_NUM}
62+
export RELEASE_VERSION;
63+
echo $RELEASE_VERSION
6464
go get -v -t -d ./...
6565
git config user.email "[email protected]"
6666
git config user.name "warrensbox"
67-
git tag -a ${VERSION} -m "Release"
68-
git push origin ${VERSION}
69-
curl -L https://git.io/goreleaser | VERSION=${VERSION} bash
67+
git tag -a ${RELEASE_VERSION} -m "Release"
68+
git push origin ${RELEASE_VERSION}
69+
curl -L https://git.io/goreleaser | VERSION=v0.76.1 bash
7070
echo $GOPATH
7171
pwd
7272
ls

.goreleaser.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Make sure to check the documentation at http://goreleaser.com
33
builds:
44
- ldflags:
5-
- -s -w -X "main.version={{.Env.VERSION}}"
5+
- -s -w -X "main.version={{.Env.RELEASE_VERSION}}"
66
- main: main.go
77
binary: tfswitch
88
goos:
@@ -12,15 +12,15 @@ builds:
1212
goarch:
1313
- amd64
1414
checksum:
15-
name_template: '{{ .ProjectName }}_{{.Env.VERSION}}_checksums.txt'
15+
name_template: '{{ .ProjectName }}_{{.Env.RELEASE_VERSION}}_checksums.txt'
1616
changelog:
1717
sort: asc
1818
filters:
1919
exclude:
2020
- '^docs:'
2121
- '^test:'
2222
archive:
23-
name_template: '{{ .ProjectName }}_{{.Env.VERSION}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
23+
name_template: '{{ .ProjectName }}_{{.Env.RELEASE_VERSION}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
2424
replacements:
2525
darwin: darwin
2626
linux: linux

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION=0.3
1+
RELEASE_VERSION=0.3

0 commit comments

Comments
 (0)