有什么方法可以阻止Bitbucket管道建设吗?
这个过程花了超过25分钟?
.yml文件内容是: -
image: node:8.9.4
pipelines:
default:
- step:
caches:
- node
script: # Modify the commands below to build your repository.
- if [ $BITBUCKET_BRANCH == 'master' ]; then
- npm install -g @angular/cli
- npm install -g firebase-tools
- npm install
- ng build
- firebase deploy --only hosting --token "$FIREBASE_TOKEN" --public dist
- fi
您正在每次运行时从npm安装所有库,使用已安装了npm和firebase工具的docker映像,如下所示:https://hub.docker.com/r/devillex/docker-firebase/,这将显着缩短构建时间