Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Stream Server Project
Stream Server
Commits
bb61c825
Commit
bb61c825
authored
Aug 23, 2019
by
Simon Kirsten
Browse files
Fixed CI LDFLAGS again
parent
bb8dfdf6
Pipeline
#22340
passed with stage
in 1 minute and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci-server.yml
View file @
bb61c825
...
...
@@ -4,12 +4,10 @@ server:
stage
:
build
image
:
golang:1.12
# TWITCH_CLIENT_ID is supplied via the GitLab CI/CD environment variables. This way only project owners can see the private key
variables
:
LDFLAGS
:
"
-s
-X
main.twitchClientID=$TWITCH_CLIENT_ID
-X
main.version=${CI_COMMIT_TAG:-untagged}-$CI_COMMIT_SHORT_SHA"
before_script
:
-
go mod download
# TWITCH_CLIENT_ID is supplied via the GitLab CI/CD environment variables. This way only project owners can see the private key
-
export LDFLAGS="-s -X main.twitchClientID=$TWITCH_CLIENT_ID -X main.version=${CI_COMMIT_TAG:-untagged}-$CI_COMMIT_SHORT_SHA"
-
echo "building with LDFLAGS = $LDFLAGS"
script
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment