- Wercker上でsubmoduleをclone (
update --init
) したい - submoduleはbitbucket上のprivateリポジトリ
設定方法
1. Wercker上でSSHキー作成
2. 作成したSSHキーをbitbucketアカウントに追加
3. wercker.yml
調整
build:
steps:
# ...
# `git` `openssh-client` がないboxの場合は事前にインストール
- script:
name: package install
code: |
yum install -y git openssh-client
# see http://devcenter.wercker.com/docs/git/submodules
- add-ssh-key:
keyname: BITBUCKET_KEY
host: bitbucket.org
# see https://github.com/wercker/step-add-to-known_hosts
- add-to-known_hosts:
hostname: bitbucket.org
fingerprint: 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40
type: rsa
- script:
name: git submodule
code: |
git submodule update --init
-
keyname: BITBUCKET_KEY
部分は「1. Wercker上でSSHキー作成」で設定したkeynameを設定