Commit 11427013 authored by Simon Kirsten's avatar Simon Kirsten
Browse files

Updated CI pipeline

parent 96e704af
stream-tv-server*
\ No newline at end of file
stream-tv-server*
binaries/
\ No newline at end of file
......@@ -4,12 +4,13 @@ pages:
before_script:
# TODO: we should consider also version locking these packages:
# + everything will work in the future
# - we wont see any future improvements in mkdocs or mkdocs-material
# - we wont see any future improvements by mkdocs or mkdocs-material
- pip install mkdocs
- pip install mkdocs-material
script:
- mkdocs build
- mv site public
- mv binaries public/
artifacts:
paths:
- public
server:
stage: build
image: golang:1.12
variables:
- BUILD_OPTIONS: -ldflags "-s -X code.fbi.h-da.de/simons-nzse-2/stream-tv/pkg/twitch.ClientID=$TWITCH_CLIENT_ID"
#
script:
- env GOOS=darwin GOARCH=386 go build -o stream-tv-server-darwin-x86 ./cmd/stream-tv-server
- env GOOS=darwin GOARCH=amd64 go build -o stream-tv-server-darwin-x86_64 ./cmd/stream-tv-server
- env GOOS=darwin GOARCH=386 go build -o binaries/darwin-x86/stream-tv-server ./cmd/stream-tv-server
- env GOOS=darwin GOARCH=amd64 go build -o binaries/darwin-x86_64/stream-tv-server ./cmd/stream-tv-server
- env GOOS=linux GOARCH=386 go build -o stream-tv-server-linux-x86 ./cmd/stream-tv-server
- env GOOS=linux GOARCH=amd64 go build -o stream-tv-server-linux-x86_64 ./cmd/stream-tv-server
- env GOOS=linux GOARCH=arm go build -o stream-tv-server-linux-arm ./cmd/stream-tv-server
- env GOOS=linux GOARCH=arm64 go build -o stream-tv-server-linux-arm64 ./cmd/stream-tv-server
- env GOOS=linux GOARCH=386 go build -o binaries/linux-x86/stream-tv-server ./cmd/stream-tv-server
- env GOOS=linux GOARCH=amd64 go build -o binaries/linux-x86_64/stream-tv-server ./cmd/stream-tv-server
- env GOOS=linux GOARCH=arm go build -o binaries/linux-arm/stream-tv-server ./cmd/stream-tv-server
- env GOOS=linux GOARCH=arm64 go build -o binaries/linux-arm64/stream-tv-server ./cmd/stream-tv-server
- env GOOS=windows GOARCH=386 go build -o stream-tv-server-windows-x86.exe ./cmd/stream-tv-server
- env GOOS=windows GOARCH=amd64 go build -o stream-tv-server-windows-x86_64.exe ./cmd/stream-tv-server
- env GOOS=windows GOARCH=386 go build -o binaries/windows-x86/stream-tv-server.exe ./cmd/stream-tv-server
- env GOOS=windows GOARCH=amd64 go build -o binaries/windows-x86_64/stream-tv-server.exe ./cmd/stream-tv-server
artifacts:
expire_in: 100 yrs # unfortunately keep_forever or keep_latest is not (yet) available in GitLab.
paths:
- stream-tv-server-darwin-x86
- stream-tv-server-darwin-x86_64
- stream-tv-server-linux-x86
- stream-tv-server-linux-x86_64
- stream-tv-server-linux-arm
- stream-tv-server-linux-arm64
- stream-tv-server-windows-x86.exe
- stream-tv-server-windows-x86_64.exe
- binaries/
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment