LoginSignup
2
2

More than 5 years have passed since last update.

Wercker上でprivateリポジトリのsubmodule

Posted at
  • 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を設定

参考

2
2
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
2
2