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
f80a360a
Commit
f80a360a
authored
Jul 29, 2021
by
Sydney Anne Erickson
Browse files
Options
Downloads
Plain Diff
Merge branch 'Anne/CIfix' into 'release'
Fixes for portable CI See merge request
!662
parents
c8e9b996
5240c029
No related branches found
No related tags found
1 merge request
!23
Release
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+14
-29
14 additions, 29 deletions
.gitlab-ci.yml
with
14 additions
and
29 deletions
.gitlab-ci.yml
+
14
−
29
View file @
f80a360a
# From: https://about.gitlab.com/2017/09/21/how-to-create-ci-cd-pipeline-with-autodeploy-to-kubernetes-using-gitlab-and-helm/
variables
:
REPO_DIR
:
gitlab.com/elixxir
REPO_NAME
:
client
DOCKER_IMAGE
:
elixxirlabs/cuda-go:go1.16-cuda11.1
MIN_CODE_COVERAGE
:
"
35"
before_script
:
before_script
:
##
## Go Setup
##
-
go version || echo "Go executable not found."
-
go version || echo "Go executable not found."
-
echo $CI_BUILD_REF
-
echo $CI_BUILD_REF
-
echo $CI_PROJECT_DIR
-
echo $CI_PROJECT_DIR
...
@@ -23,12 +12,10 @@ before_script:
...
@@ -23,12 +12,10 @@ before_script:
-
git config --global url."git@$GITLAB_SERVER:".insteadOf "https://git.xx.network/"
-
git config --global url."git@$GITLAB_SERVER:".insteadOf "https://git.xx.network/"
-
export PATH=$HOME/go/bin:$PATH
-
export PATH=$HOME/go/bin:$PATH
stages
:
stages
:
-
test
-
test
-
build
-
build
-
trigger_integration
-
trigger_integration
-
trigger_release_integration
test
:
test
:
stage
:
test
stage
:
test
...
@@ -65,9 +52,9 @@ build:
...
@@ -65,9 +52,9 @@ build:
-
tags
-
tags
script
:
script
:
-
mkdir -p release
-
mkdir -p release
-
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-w -s' ./...
#
- GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-w -s' ./...
-
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-w -s' -o release/client.linux64 main.go
-
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-w -s' -o release/client.linux64 main.go
-
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-w -s' -o release/client.win64 main.go
#
- GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-w -s' -o release/client.win64 main.go
# - GOOS=windows GOARCH=386 CGO_ENABLED=0 go build -ldflags '-w -s' -o release/client.win32 main.go
# - 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
-
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-w -s' -o release/client.darwin64 main.go
-
/upload-artifacts.sh release/
-
/upload-artifacts.sh release/
...
@@ -81,7 +68,7 @@ tag:
...
@@ -81,7 +68,7 @@ tag:
-
master
-
master
image
:
$DOCKER_IMAGE
image
:
$DOCKER_IMAGE
script
:
script
:
-
git remote add origin_tags git@
gitlab.com
:elixxir/client.git ||
true
-
git remote add origin_tags git@
$GITLAB_SERVER
:elixxir/client.git ||
true
-
git tag $(release/client.linux64 version | grep "Elixxir Client v"| cut -d ' ' -f3) -f
-
git tag $(release/client.linux64 version | grep "Elixxir Client v"| cut -d ' ' -f3) -f
-
git push origin_tags -f --tags
-
git push origin_tags -f --tags
...
@@ -116,22 +103,20 @@ bindings-android:
...
@@ -116,22 +103,20 @@ bindings-android:
-
bindings.aar
-
bindings.aar
-
bindings-sources.jar
-
bindings-sources.jar
trigger
_
integration
:
trigger
-
integration
:
stage
:
trigger_integration
stage
:
trigger_integration
script
:
trigger
:
# UDB
project
:
elixxir/integration
-
"
curl
-X
POST
-F
token=dcf1a672991bbc2520e96cea271b5a
-F
ref=master
https://gitlab.com/api/v4/projects/6317316/trigger/pipeline"
branch
:
$CI_COMMIT_REF_NAME
# integration
-
"
curl
-X
POST
-F
token=e34aa19ef1530e579c5d590873d3c6
-F
ref=master
https://gitlab.com/api/v4/projects/5615854/trigger/pipeline"
only
:
only
:
-
master
-
master
-
release
trigger_release_integration
:
trigger-udb
:
stage
:
trigger_release_integration
stage
:
trigger_integration
script
:
trigger
:
# UDB
project
:
elixxir/user-discovery-bot
-
"
curl
-X
POST
-F
token=dcf1a672991bbc2520e96cea271b5a
-F
ref=release
https://gitlab.com/api/v4/projects/6317316/trigger/pipeline"
branch
:
$CI_COMMIT_REF_NAME
# integration
-
"
curl
-X
POST
-F
token=e34aa19ef1530e579c5d590873d3c6
-F
ref=release
-F
\"
variables[CLIENT_ID]=release
\"
-F
\"
variables[GATEWAY_ID]=release
\"
-F
\"
variables[REGISTRATION_ID]=release
\"
-F
\"
variables[SERVER_ID]=release
\"
-F
\"
variables[UDB_ID]=release
\"
https://gitlab.com/api/v4/projects/5615854/trigger/pipeline"
only
:
only
:
-
master
-
release
-
release
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