GoScrobble/.gitlab-ci.yml
Daniel Mason 5fd9d41069
- Login flow working..
- Jellyfin scrobble working
- Returns scrobbles via API for authed users /api/v1/user/{uuid}/scrobble
- Add redis handler + funcs
- Move middleware to pass in uuid as needed
2021-03-29 20:58:43 +13:00

47 lines
915 B
YAML

stages:
- build
- bundle
variables:
VERSION: 0.0.2
build-go:
image: golang:1.16.2
stage: build
script:
- go build -o goscrobble cmd/go-scrobble/*.go
artifacts:
expire_in: 1 day
paths:
- goscrobble
- migrations
- init
- .env.example
build-react:
image: node:15.12.0
stage: build
script:
- cd web
- npm install
- npm run build --env production
artifacts:
expire_in: 1 day
paths:
- web/build
bundle:
image: bash:latest
stage: bundle
variables:
GIT_STRATEGY: none
before_script:
- apk add --no-cache zip tar
script:
- zip -r goscrobble.${VERSION}.zip web/build goscrobble migrations init .env.example
- tar -czf goscrobble.${VERSION}.tar.gz web/build goscrobble migrations init .env.example
artifacts:
expire_in: 1 week
paths:
- goscrobble.${VERSION}.zip
- goscrobble.${VERSION}.tar.gz