Commit e79744f6 by twb

Update .gitlab-ci.yml

parent 60b01489
Pipeline #968 failed in 0 seconds
stages: cache:
- build paths:
- node_modules/
variables: variables:
UMI_ENV: "prod" UMI_ENV: "production"
PROJECT_PATH: "/mnt/home/deploy/ant-design-pro/middle-end-H5" PROJECT_PATH: "/sport/"
build: init:
stage: build stage: init
only: only:
- release - release
script: script:
- echo $PROJECT_PATH - echo ${UMI_ENV}
- echo ${PROJECT_PATH}
- cat <<EOF > ./config/config.${UMI_ENV}.js
const {PROJECT_PATH} = process.env;
export default {
hash: true,
base: PROJECT_PATH,
publicPath: PROJECT_PATH,
outputPath: PROJECT_PATH,
};
EOF
- yarn --ignore-optional --registry=https://registry.npm.taobao.org
#build:
# stage: build
# only:
# - release
# script:
# - yarn build
#
deploy:
stage: deploy
only:
- release
script:
- echo "start deploy"
- cp -f ./config/config.${PROJECT_ENV}.js /temp/config.dev.js
- echo "end deploy"
\ No newline at end of file
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