From 74d1fec817e6ac2a00996917e8138ae627ca54d3 Mon Sep 17 00:00:00 2001 From: Daniel Mason Date: Sun, 28 Mar 2021 11:01:58 +1300 Subject: [PATCH] GitLab CI fix prod builds --- .gitlab-ci.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c43110a3..c352f67a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,21 +16,19 @@ build-go: - goscrobble - migrations - init + - .env.example 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 + - npm run build --env production artifacts: expire_in: 1 day paths: - web/build - - .env.example bundle: image: bash:latest @@ -40,10 +38,10 @@ bundle: before_script: - apk add --no-cache zip tar script: - - zip -r goscrobble.zip web/build goscrobble migrations init .env.example - - tar -czf goscrobble.tar.gz web/build goscrobble migrations init .env.example + - 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: 6 months + expire_in: 1 week paths: - goscrobble.${VERSION}.zip - goscrobble.${VERSION}.tar.gz \ No newline at end of file