Commit 2791b3d4 authored by Simon Kirsten's avatar Simon Kirsten
Browse files

Updated CI pipeline variables and pkger output dir

parent 2b927670
Pipeline #26217 passed with stages
in 1 minute and 57 seconds
......@@ -9,11 +9,11 @@ server:
# load version from prep stage
- export VERSION=$(cat version)
# 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 stream-server/internal/server.defaultTwitchClientID=$TWITCH_CLIENT_ID -X stream-server/internal/server.Version=$VERSION"
- export LDFLAGS="-s -X stream-server.DefaultTwitchClientID=$TWITCH_CLIENT_ID -X stream-server.Version=$VERSION"
# run pkger to pack /internal/static
- go run
- go run -o internal/server
- env GOOS=darwin GOARCH=386 go build -ldflags "$LDFLAGS" -o bin/$VERSION/darwin-x86/stream-server ./cmd/stream-server
- env GOOS=darwin GOARCH=amd64 go build -ldflags "$LDFLAGS" -o bin/$VERSION/darwin-x86_64/stream-server ./cmd/stream-server
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