Commit cbd29a31 authored by nanahira's avatar nanahira

ci

parent 553197b6
stages:
- build
- deploy
variables:
GIT_DEPTH: "1"
build:
stage: build
dependencies: []
tags:
- linux
script:
- npm ci
- npm run build
artifacts:
paths:
- dist/
upload_to_minio:
stage: deploy
dependencies:
- build
tags:
- linux
script:
- aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete dist/ s3://mycard/mobile
only:
- master
......@@ -5,8 +5,8 @@
"scripts": {
"ng": "ng",
"start": "ng serve --aot --host 0.0.0.0",
"build": "ng build --i18n-locale zh-CN --prod --source-map --base-href /mobile/ --deploy-url https://cdn01.moecube.com/mobile/ && npm run fuck",
"build:dev": "ng build --i18n-locale zh-CN --prod --source-map --base-href /mobile2/ --deploy-url https://cdn01.moecube.com/mobile2/ && npm run fuck",
"build": "ng build --i18n-locale zh-CN --prod --source-map --base-href /mobile/ --deploy-url https://cdn02.moecube.com:444/mobile/ && npm run fuck",
"build:dev": "ng build --i18n-locale zh-CN --prod --source-map --base-href /mobile2/ --deploy-url https://cdn02.moecube.com:444/mobile2/ && npm run fuck",
"fuck": "patch -i service-worker.patch dist/ngsw-worker.js",
"postinstall": "patch -i webpack.patch -p0 -t",
"lint": "ng lint"
......
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