Skip to content

dotsunited/docker-git-ftp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

docker-git-ftp

A minimal Alpine Linux docker image with the latest git-ftp suited for automated deployments via Continuous Delivery systems like GitLab Pipelines.

Automatically build upon pushes to the master branch: https://hub.docker.com/r/dotsunited/git-ftp

Usage

Example .gitlab-ci.yml configuration:

deploy_production:
  image: dotsunited/git-ftp
  stage: deploy
  environment:
    name: production
    url: https://example.com
  only:
    - master
  script:
    - git ftp push -v --auto-init --syncroot public/ --user $FTP_DEPLOY_USER --passwd $FTP_DEPLOY_PASSWORD $FTP_DEPLOY_HOST

Make sure, you configure the $FTP_DEPLOY_USER, $FTP_DEPLOY_PASSWORD and $FTP_DEPLOY_HOST variables in the CI/CD settings on GitLab.

License

Copyright (c) 2017-2024 Dots United GmbH. Released under the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published