我试图压缩我的dist文件夹并将Azure的kudu zip部署端点发布到它上,但是不管我自己安装了一个压缩包这一事实,我总是收到这个错误。
我的码头图片:weltn24 24/up-码头-节点-铬-无头 on tag: Chrome-66_node-10.0_image 1.6.0
在我的yml文件中失败的部分:
build:
stage: build
script:
- apt-get install p7zip p7zip-full
- yarn install
- ./node_modules/@angular/cli/bin/ng build --prod
- cd dist/AngularTemplate; zip -r ../dist.zip *; cd ..; cd..
artifacts:
paths:
- dist.zip第4行上的命令在zip:命令未找到时失败。
发布于 2018-11-12 14:57:25
正确的脚本如下:
build:
stage: build
script:
- apt-get install zip unzip
- yarn install
- ./node_modules/@angular/cli/bin/ng build --prod
- cd dist/AngularTemplate; zip -r ../../dist.zip *; cd ..; cd..
artifacts:
paths:
- dist.zip正在安装错误的Zip软件包,然后将我的档案放在错误的文件夹中。
https://devops.stackexchange.com/questions/5418
复制相似问题