Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stream-server.h-da.io
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stream Server Project
stream-server.h-da.io
Commits
0adba982
Commit
0adba982
authored
5 years ago
by
Simon Kirsten
Browse files
Options
Downloads
Patches
Plain Diff
Improved CI pipeline and added version information
parent
416e72a1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci-docs.yml
+7
-2
7 additions, 2 deletions
.gitlab-ci-docs.yml
.gitlab-ci-server.yml
+19
-10
19 additions, 10 deletions
.gitlab-ci-server.yml
with
26 additions
and
12 deletions
.gitlab-ci-docs.yml
+
7
−
2
View file @
0adba982
# This is the CI file for GitLab Pages
pages
:
pages
:
stage
:
deploy
stage
:
deploy
image
:
python:3.7-alpine
image
:
python:3.7-alpine
before_script
:
before_script
:
# TODO: we should consider also version locking these packages:
# TODO: we should consider also version locking these packages:
# + everything will work in the future
# + everything will work in the future
# - we wont see any future improvements by mkdocs or mkdocs-material
# - we wont see any future improvements by mkdocs or mkdocs-material
-
pip install mkdocs
-
pip install mkdocs
-
pip install mkdocs-material
-
pip install mkdocs-material
script
:
script
:
-
mkdocs build
-
mkdocs build
-
mv site public
-
mv site public
# move mkdocs output to public
-
mv binaries public/
-
mv binaries public/
# move binaries from the build stage to public
artifacts
:
artifacts
:
paths
:
paths
:
-
public
-
public
This diff is collapsed.
Click to expand it.
.gitlab-ci-server.yml
+
19
−
10
View file @
0adba982
# This is the CI file for the stream-tv-server
server
:
server
:
stage
:
build
stage
:
build
image
:
golang:1.12
image
:
golang:1.12
variables
:
LDFLAGS
:
-s -X code.fbi.h-da.de/simons-nzse-2/stream-tv/pkg/twitch.ClientID=${TWITCH_CLIENT_ID}
# TWITCH_CLIENT_ID is supplied via the GitLab CI/CD environment variables. This way only project owners can see the private key.
before_script
:
-
VERSION=$(git describe --always --long --dirty)
-
export LDFLAGS="-s -X stream-tv/pkg/twitch.ClientID=$TWITCH_CLIENT_ID -X stream-tv/cmd/stream-tv-server/main.version=$VERSION"
-
go mod download
-
echo "building $VERSION"
script
:
script
:
-
env GOOS=darwin GOARCH=386 go build -ldflags "$
{
LDFLAGS
}
" -o binaries/darwin-x86/stream-tv-server ./cmd/stream-tv-server
-
env GOOS=darwin GOARCH=386 go build -ldflags "$LDFLAGS" -o binaries/darwin-x86/stream-tv-server ./cmd/stream-tv-server
-
env GOOS=darwin GOARCH=amd64 go build -ldflags "$
{
LDFLAGS
}
" -o binaries/darwin-x86_64/stream-tv-server ./cmd/stream-tv-server
-
env GOOS=darwin GOARCH=amd64 go build -ldflags "$LDFLAGS" -o binaries/darwin-x86_64/stream-tv-server ./cmd/stream-tv-server
-
env GOOS=linux GOARCH=386 go build -ldflags "$
{
LDFLAGS
}
" -o binaries/linux-x86/stream-tv-server ./cmd/stream-tv-server
-
env GOOS=linux GOARCH=386 go build -ldflags "$LDFLAGS" -o binaries/linux-x86/stream-tv-server ./cmd/stream-tv-server
-
env GOOS=linux GOARCH=amd64 go build -ldflags "$
{
LDFLAGS
}
" -o binaries/linux-x86_64/stream-tv-server ./cmd/stream-tv-server
-
env GOOS=linux GOARCH=amd64 go build -ldflags "$LDFLAGS" -o binaries/linux-x86_64/stream-tv-server ./cmd/stream-tv-server
-
env GOOS=linux GOARCH=arm go build -ldflags "$
{
LDFLAGS
}
" -o binaries/linux-arm/stream-tv-server ./cmd/stream-tv-server
-
env GOOS=linux GOARCH=arm go build -ldflags "$LDFLAGS" -o binaries/linux-arm/stream-tv-server ./cmd/stream-tv-server
-
env GOOS=linux GOARCH=arm64 go build -ldflags "$
{
LDFLAGS
}
" -o binaries/linux-arm64/stream-tv-server ./cmd/stream-tv-server
-
env GOOS=linux GOARCH=arm64 go build -ldflags "$LDFLAGS" -o binaries/linux-arm64/stream-tv-server ./cmd/stream-tv-server
-
env GOOS=windows GOARCH=386 go build -ldflags "$
{
LDFLAGS
}
" -o binaries/windows-x86/stream-tv-server.exe ./cmd/stream-tv-server
-
env GOOS=windows GOARCH=386 go build -ldflags "$LDFLAGS" -o binaries/windows-x86/stream-tv-server.exe ./cmd/stream-tv-server
-
env GOOS=windows GOARCH=amd64 go build -ldflags "$
{
LDFLAGS
}
" -o binaries/windows-x86_64/stream-tv-server.exe ./cmd/stream-tv-server
-
env GOOS=windows GOARCH=amd64 go build -ldflags "$LDFLAGS" -o binaries/windows-x86_64/stream-tv-server.exe ./cmd/stream-tv-server
artifacts
:
artifacts
:
paths
:
paths
:
...
...
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