使用Wercker CLI进行构建和部署

时间:2016-05-28 12:39:57

标签: command-line-interface wercker

我在Wercker网站上配置了Wercker应用程序,其管道builddeploy工作正常。

现在,我遇到了部署问题,我正在尝试使用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。当然,这只是一种解决方法。

0 个答案:

没有答案