cschlosser / drone-ftps

Deploy to FTPS server from Drone CI build
https://hub.docker.com/r/cschlosser/drone-ftps/
Apache License 2.0
20 stars 16 forks source link

Working .drone.yml for drone/drone:1.0.0-rc.3 #14

Closed Helpys closed 5 years ago

Helpys commented 5 years ago

This config File works for me with the drone/drone:1.0.0-rc.3 image.

kind: pipeline
name: default

steps:
- name: master_build
  image: cschlosser/drone-ftps
  environment:
    FTP_USERNAME:
      from_secret: username
    FTP_PASSWORD:
      from_secret: password
    PLUGIN_HOSTNAME: myhost.ch:21

    PLUGIN_SECURE: false
    PLUGIN_VERIFY: false
    PLUGIN_EXCLUDE: ^\.git/$
  when:
    branch:
    - master
    event:
    - push

- name: develop_build
  image: cschlosser/drone-ftps
  environment:
    FTP_USERNAME:
      from_secret: username
    FTP_PASSWORD:
      from_secret: password
    PLUGIN_HOSTNAME: myhost.ch:21
    PLUGIN_DEST_DIR: /develop
    PLUGIN_SECURE: false
    PLUGIN_VERIFY: false
    PLUGIN_EXCLUDE: ^\.git/$
  when:
    branch:
    - develop
    event:
    - push

Regards, Alain

cschlosser commented 5 years ago

Thank you! Will update when they release 1.0.0

leo-unglaub commented 5 years ago

I can confirm that this works on the latest release 1.0.1.

cschlosser commented 5 years ago

Thank you very much I updated the readme