5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

werckerでgh-pagesへのデプロイが失敗するときの対応

Posted at

ブログをwerckerでgh-pagesにデプロイしようとしたら以下のようなエラーが発生。

...
/pipeline/gh-pages-e2a3eb58-25ad-4d1d-866d-57a97d37dd73/run.sh: line 56: git: command not found
/pipeline/gh-pages-e2a3eb58-25ad-4d1d-866d-57a97d37dd73/run.sh: line 60: warning: command not found
failed: failed pushing to github pages

Hugoのフォーラムでこの対処法がコメントされており、wercker.ymldeploy: steps:の直後に以下を追加すればOKとのことだった。

- install-packages:
    packages: git ssh-client

最終的なwercker.ymlは以下の通り。

box: debian
build:
  steps:
    - arjen/hugo-build:
      version: "0.14"
      theme: customTheme
      flags: --buildDrafts=true
deploy:
  steps:
    - install-packages:
      packages: git ssh-client
    - lukevivier/gh-pages@0.2.1:
      token: $GIT_TOKEN
      domain: my.domain
      basedir: public

これで無事デプロイ成功するようになった。

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?