Mic*_*elB 5 gitlab docker gitlab-ci
我正在尝试压缩我的 dist 文件夹并将 Azure 的 kudu zipdeploy 端点发布到它,但我一直收到此错误,无论我自己是否安装了压缩包。
我的docker镜像:标签上的 weltn24/up-docker-node-chrome-headless
:chrome-66_node-10.0_yarn-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
Run Code Online (Sandbox Code Playgroud)
第 4 行的命令失败并显示 zip: command not found。
正确的脚本如下:
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
Run Code Online (Sandbox Code Playgroud)
正在安装错误的 Zip 包,然后将我的存档放在错误的文件夹中。
| 归档时间: |
|
| 查看次数: |
6822 次 |
| 最近记录: |