mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-22 08:25:14 +00:00
GitLab CI fix prod builds
This commit is contained in:
parent
86549d3335
commit
74d1fec817
@ -16,21 +16,19 @@ build-go:
|
|||||||
- goscrobble
|
- goscrobble
|
||||||
- migrations
|
- migrations
|
||||||
- init
|
- init
|
||||||
|
- .env.example
|
||||||
|
|
||||||
build-react:
|
build-react:
|
||||||
image: node:15.12.0
|
image: node:15.12.0
|
||||||
stage: build
|
stage: build
|
||||||
variables:
|
|
||||||
REACT_APP_API_URL: "https://goscrobble.com"
|
|
||||||
script:
|
script:
|
||||||
- cd web
|
- cd web
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- npm run build --env production
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 1 day
|
expire_in: 1 day
|
||||||
paths:
|
paths:
|
||||||
- web/build
|
- web/build
|
||||||
- .env.example
|
|
||||||
|
|
||||||
bundle:
|
bundle:
|
||||||
image: bash:latest
|
image: bash:latest
|
||||||
@ -40,10 +38,10 @@ bundle:
|
|||||||
before_script:
|
before_script:
|
||||||
- apk add --no-cache zip tar
|
- apk add --no-cache zip tar
|
||||||
script:
|
script:
|
||||||
- zip -r goscrobble.zip web/build goscrobble migrations init .env.example
|
- zip -r goscrobble.${VERSION}.zip web/build goscrobble migrations init .env.example
|
||||||
- tar -czf goscrobble.tar.gz web/build goscrobble migrations init .env.example
|
- tar -czf goscrobble.${VERSION}.tar.gz web/build goscrobble migrations init .env.example
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 6 months
|
expire_in: 1 week
|
||||||
paths:
|
paths:
|
||||||
- goscrobble.${VERSION}.zip
|
- goscrobble.${VERSION}.zip
|
||||||
- goscrobble.${VERSION}.tar.gz
|
- goscrobble.${VERSION}.tar.gz
|
Loading…
Reference in New Issue
Block a user