Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
aa1e40f1
Commit
aa1e40f1
authored
Feb 6, 2020
by
Jake Taylor
Browse files
Options
Downloads
Plain Diff
Merge branch 'XX-1838/Tagging-Fix' into 'release'
Only run tagging on master branch See merge request
!329
parents
7e50d81a
853a809e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+19
-3
19 additions, 3 deletions
.gitlab-ci.yml
with
19 additions
and
3 deletions
.gitlab-ci.yml
+
19
−
3
View file @
aa1e40f1
...
...
@@ -32,12 +32,15 @@ stages:
-
setup
-
test
-
build
-
tag
-
trigger_integration
-
trigger_release_integration
setup
:
stage
:
setup
image
:
$DOCKER_IMAGE
except
:
-
tags
script
:
-
go mod vendor -v
-
go build ./...
...
...
@@ -49,6 +52,8 @@ setup:
test
:
stage
:
test
image
:
$DOCKER_IMAGE
except
:
-
tags
script
:
-
GO111MODULE=off go get -u github.com/haya14busa/goverage
-
apt-get update
...
...
@@ -74,6 +79,8 @@ test:
build
:
stage
:
build
image
:
$DOCKER_IMAGE
except
:
-
tags
script
:
-
mkdir -p release
-
go generate cmd/version.go
...
...
@@ -83,15 +90,24 @@ build:
-
GOOS=windows GOARCH=386 CGO_ENABLED=0 go build -ldflags '-w -s' -o release/client.win32 main.go
-
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-w -s' -o release/client.darwin64 main.go
-
release/client.linux64 --version
-
git remote add origin_tags git@gitlab.com:elixxir/client.git ||
true
-
git tag $(release/client.linux64 -V | grep "Elixxir Client v"| cut -d ' ' -f3) -f
-
git push origin_tags -f --tags
artifacts
:
paths
:
-
release/
tag
:
stage
:
tag
only
:
-
master
image
:
$DOCKER_IMAGE
script
:
-
git remote add origin_tags git@gitlab.com:elixxir/client.git ||
true
-
git tag $(release/client.linux64 -V | grep "Elixxir Client v"| cut -d ' ' -f3) -f
-
git push origin_tags -f --tags
#bindings:
# stage: build
# except:
# - tags
# tags:
# - ios
# script:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment