mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-21 16:11:56 +00:00
Add gitlab-ci file
This commit is contained in:
parent
08f0cb6c80
commit
e4cabfadb1
39
.gitlab-ci.yml
Normal file
39
.gitlab-ci.yml
Normal file
@ -0,0 +1,39 @@
|
||||
stages:
|
||||
- build
|
||||
- bundle
|
||||
|
||||
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
|
||||
|
||||
build-react:
|
||||
image: node:15.12.0
|
||||
stage: build
|
||||
variables:
|
||||
REACT_APP_API_URL: "https://goscrobble.com"
|
||||
script:
|
||||
- cd web
|
||||
- npm install
|
||||
- npm run build
|
||||
artifacts:
|
||||
expire_in: 1 day
|
||||
paths:
|
||||
- web/build
|
||||
- web/public
|
||||
- .env.example
|
||||
|
||||
bundle:
|
||||
image: idk
|
||||
stage: bundle
|
||||
variables:
|
||||
GIT_STRATEGY: none
|
||||
script:
|
||||
- ls -lah
|
Loading…
Reference in New Issue
Block a user