如何使用sftp和key从bitbucket管道进行部署?

时间:2019-01-08 08:58:48

标签: continuous-integration bitbucket sftp continuous-deployment bitbucket-pipelines

我正在尝试使用git-ftpsftp使用BitBucket管道推送到远程服务器。正在使用Amazon Linux 2

这是我的bitbucket-pipelines.yml;

image: madshansen/docker-git-ftp:latest

pipelines:
  default:
    - step:
        script:
          - apt-get update
          - apt-get -qq install git-ftp
          - git ftp push --user $FTP_USERNAME "sftp://servername.domain.com/var/www/html/dev.videommerce.com/"

不幸的是,我收到以下错误消息

fatal: Remote host not set.

注意:我已经按照文档添加了键和所有变量。

我的代码有什么问题?

0 个答案:

没有答案
相关问题