Commit 752d12ad by twb

Update .gitlab-ci.yml

parent 912eb78d
Pipeline #972 failed in 0 seconds
...@@ -2,9 +2,8 @@ cache: ...@@ -2,9 +2,8 @@ cache:
paths: paths:
- node_modules/ - node_modules/
variables: variables:
UMI_ENV: "production" UMI_ENV: "prod"
PROJECT_PATH: "/sport/" PROJECT_PATH: "/sport/"
PROJECT_HASH: "true"
init: init:
stage: init stage: init
only: only:
...@@ -14,12 +13,14 @@ init: ...@@ -14,12 +13,14 @@ init:
- echo ${PROJECT_PATH} - echo ${PROJECT_PATH}
- echo "const {PROJECT_PATH} = process.env;" >> ../config/config.${UMI_ENV}.js - echo "const {PROJECT_PATH} = process.env;" >> ../config/config.${UMI_ENV}.js
- echo "export default {" >> ../config/config.${UMI_ENV}.js - echo "export default {" >> ../config/config.${UMI_ENV}.js
- echo " hash: ${PROJECT_HASH}," >> ../config/config.${UMI_ENV}.js - echo "${project_hash}\n${project_base}\n${project_public_path}\n${project_output_path}" >> ../config/config.${UMI_ENV}.js
- echo " base: PROJECT_PATH," >> ../config/config.${UMI_ENV}.js
- echo " publicPath: PROJECT_PATH," >> ../config/config.${UMI_ENV}.js
- echo " outputPath: PROJECT_PATH," >> ../config/config.${UMI_ENV}.js
- echo "};" >> ../config/config.${UMI_ENV}.js - echo "};" >> ../config/config.${UMI_ENV}.js
- yarn --ignore-optional --registry=https://registry.npm.taobao.org - yarn --ignore-optional --registry=https://registry.npm.taobao.org
environment:
project_hash: " hash: true,"
project_base: " base: PROJECT_PATH,"
project_public_path: " publicPath: PROJECT_PATH,"
project_output_path: " outputPath: PROJECT_PATH,"
#build: #build:
# stage: build # stage: build
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment