レンタルサーバーにBitbuketのソースコードを自動デプロイしたいです。
下記をPipelinesのbitbucket-pipelines.ymlに記載しましたが、エラーが生じてしまいます。
ご教示いただきますと幸いです。
image: samueldebruyn/debian-git pipelines: branches: master: - step: script: - echo "Pipeline Init" - apt-get update - apt-get -qq install git-ftp - echo "Initiating Push" - git config git-ftp.url sftp://ホスト名/ - git config git-ftp.remote-root home/ユーザー名/www/ - git config git-ftp.syncroot home/ユーザー名/www/hoge/ - git config git-ftp.user $FTP_USERNAME # Repository variables - git config git-ftp.password $FTP_PASSWORD # Repository variables - git config git-ftp.key "/root/.ssh/id_rsa" # SSH keys - git config git-ftp.insecure 1 - git ftp init -vv - echo "Done Pushing"
Error
git ftp init -v Wed Apr 29 14:56:18 UTC 2020: git-ftp version 1.5.1 running on Linux Wed Apr 29 14:56:18 UTC 2020: Host is '×××××××××'. Wed Apr 29 14:56:18 UTC 2020: User is '×××××××××'. Wed Apr 29 14:56:18 UTC 2020: Password is set. Wed Apr 29 14:56:18 UTC 2020: CACert is ''. Wed Apr 29 14:56:18 UTC 2020: Insecure is '1'. Wed Apr 29 14:56:18 UTC 2020: Proxy is ''. Wed Apr 29 14:56:18 UTC 2020: Using ssh private key file /home/×××××××××/.ssh/id_rsa Wed Apr 29 14:56:18 UTC 2020: Path is 'home/×××××××××/www/'. Wed Apr 29 14:56:18 UTC 2020: fatal: 'home/×××××××××/www/hoge' is not a directory! Exiting...
あなたの回答
tips
プレビュー