continuous-integration - 如何使用 sftp 和密钥从 bitbucket 管道部署?
问题描述
我正在尝试使用 BitBucket Pipelines 使用git-ftp
and推送到远程服务器sftp
。我正在使用亚马逊 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.
注意:我根据文档添加了键和所有变量。
我的代码有什么问题?
解决方案
推荐阅读
- azure-devops - Azure Repos Git 上的批准和检查被忽略
- python - 如何正确格式化 Selenium Python 中的元素?
- excel - 如何在工作表中查找数据,对其进行修改,然后使用宏将修改后的数据写回该行?
- android - 如何避免可过滤适配器上的 notifyDataSetChanged?
- blazor - 使用 Storybook 等框架记录 Blazor 组件的可能性是什么?
- python - python - 创建一个列,其中包含来自其他列的值列表
- vue.js - 没有找到这些依赖 Antdv 模块化 antd
- html - 单击时如何使用数字对 div 进行升序和降序排序?
- certificate - git更新版本错误:curl:(60)SSL证书问题:证书链中的自签名证书
- docker - Docker 容器的 CpuCound 与 NanoCpus 有什么区别?如何设置 CpuCount?