Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maddsua/ftpdeploy
Deploy frontend to a simple hosting using CI/CD
https://github.com/maddsua/ftpdeploy
cicd deno deploy ftp
Last synced: about 1 month ago
JSON representation
Deploy frontend to a simple hosting using CI/CD
- Host: GitHub
- URL: https://github.com/maddsua/ftpdeploy
- Owner: maddsua
- License: mit
- Created: 2023-10-13T01:42:02.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-24T16:42:16.000Z (about 1 year ago)
- Last Synced: 2024-04-28T06:21:07.875Z (8 months ago)
- Topics: cicd, deno, deploy, ftp
- Language: TypeScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# A deploy tool for uploading static files via ftp from CICD environment
Import this thing as a git submodule, modify deno.json and create a workflow. Sounds simple to me and nobody will use it anyway so that's enough for the readme.
## Variables
Variables can be set using env var, which is the preferred way to do in CICD, or using cli arguments.
List of vars in format:
\[ENV\] - \[CMD\] - \[default value\] - \[description\]
- `FTP_DEPLOY_DIST` - `distDir` - `./dist` - Path in cicd container from where files should be taken, like Vite dist directory
- `FTP_DEPLOY_FOLDER` - `deploysFolder` - `/ftpdeploy/deploys` - Path on the ftp server where to store temp files
- `FTP_DEPLOY_WWW_PROD` - `wwwProd` - `/web/www` - Path on the ftp server where to put the stuff so it will go public. The document root if you will
- `FTP_DEPLOY_HOST` - `host` - `undefined` - FTP host address (*empty by default and must be provided)
- `FTP_DEPLOY_USER` - `user` - `undefined` - FTP user name (*empty by default and must be provided)
- `FTP_DEPLOY_PASSWORD` - `password` - `undefined` - FTP user password (*empty by default and must be provided)
# Anyway, using FTP in 2023 is stupid and you should use rsync instead