4

我在 Wercker 网站及其管道上配置了一个 Wercker 应用程序,build并且deploy工作正常。

现在,我的部署有问题,我正在尝试使用 Wercker CLI 来做同样的事情。这些是我正在遵循的步骤:

$ wercker build
--> No Docker host specified, checking: unix:///var/run/docker.sock
--> Executing pipeline
--> Running step: setup environment
[...]
--> Steps passed: 154.70s
--> Pipeline finished: 155.70s
$ wercker deploy --deploy-target stage
--> No Docker host specified, checking: unix:///var/run/docker.sock
--> Executing pipeline
--> Running step: setup environment
[...]
--> Running step: setup configuration files
bash: config-setup.sh: No such file or directory
--> Step failed: setup configuration files 0.81s
--> Pipeline failed: 43.98s
WARNING Box container has already stopped.
FATAL Step failed: setup configuration files

build管道的最后一步,我config-setup.sh$WERCKER_OUTPUT_DIR(其值为)上留下了一些文件(包括/pipeline/output)。这些文件在deploy管道上使用。这适用于 Wercker 网站,但不适用于 Wercker CLI。

我认为我缺少一些参数来让deploy管道知道文件保存在$WERCKER_OUTPUT_DIR. 请问你能帮帮我吗?

编辑:我手动模拟了build管道的执行并将文件保存在同一源代码文件夹中。之后,我可以运行wercker deploy. 当然,这只是一种解决方法。

4

0 回答 0