diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 893ea71561aa5a9bfb3808d0438f8df8a101ba0f..1480c48ab4409a27822ccf3310de27aa3f9ec124 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -79,11 +79,11 @@ be-stg-deploy-job: only: - development -#==[ Frontend deployment ]====================================================== +#==[ Frontend build ]=========================================================== -.fe-deploy-job: +fe-build-job: image: node:16-alpine - stage: deploy + stage: build tags: - commul cache: @@ -92,13 +92,25 @@ be-stg-deploy-job: - frontend/package-lock.json paths: - frontend/node_modules - before_script: - - ./ci/install-butler-on-alpine.sh script: - cd frontend - npm install - npm run build - - butler push dist eurac/$GAME_NAME:html5 + artifacts: + paths: + - dist/ + +#==[ Frontend deployment ]====================================================== + +.fe-deploy-job: + image: alpine:latest + stage: deploy + tags: + - commul + before_script: + - ./ci/install-butler-on-alpine.sh + script: + - butler push frontend/dist eurac/$GAME_NAME:html5 fe-prd-deploy-job: extends: .fe-deploy-job