Skip to content
GitLab
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
6f707623
Commit
6f707623
authored
Aug 22, 2019
by
Simon Kirsten
Browse files
Improved CI
parent
1daaad39
Pipeline
#22310
passed with stage
in 1 minute and 5 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci-docs.yml
View file @
6f707623
...
...
@@ -15,7 +15,14 @@ pages:
-
mkdocs build
-
mv site public
# move mkdocs output to public
-
mv binaries public/
# move binaries from the build stage to public
artifacts
:
paths
:
-
public
-
public
# We don't need the artifacts. They are only needed for the internal pages:deploy job
expire_in
:
1h
only
:
# Only deploy to GitLab pages on tags and also not on forked repositories
-
tags@simons-nzse-2/stream-tv
.gitlab-ci-server.yml
View file @
6f707623
...
...
@@ -4,9 +4,9 @@ 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
.
# 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-$CI_COMMIT_SHORT_SHA
LDFLAGS
:
-s -X main.twitchClientID=$TWITCH_CLIENT_ID -X main.version=$
{
CI_COMMIT_TAG
:-untagged}
-$CI_COMMIT_SHORT_SHA
before_script
:
-
go mod download
...
...
@@ -26,3 +26,6 @@ server:
artifacts
:
paths
:
-
binaries/
# We don't really need to keep old builds. We can always just rebuild them
expire_in
:
1d
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment