使用GitLab管道将数据推送到ftpserver [英] Use Gitlab Pipeline to push data to ftpserver

查看:0
本文介绍了使用GitLab管道将数据推送到ftpserver的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望部署到使用GitLab管道的ftp服务器。 我尝试了此代码:

deploy: // You can name your task however you like
    stage: deploy
    only:
        - master
        deploy:
  script:
    - apt-get update -qq && apt-get install -y -qq lftp

但我收到一条错误消息。做这件事的最佳方式是什么?:)

推荐答案

收到:)

  image: mwienk/docker-git-ftp


    deploy_all:
      stage: deploy
      script:
        - git config git-ftp.url "ftp://xx.nl:21/web/new.xxx.nl/public_html"
        - git config git-ftp.password "xxx"
        - git config git-ftp.user "xxxx"
        - git ftp init
        #- git ftp push  -m "Add new content"

      only:
        - master

这篇关于使用GitLab管道将数据推送到ftpserver的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆