An open API service indexing awesome lists of open source software.

https://github.com/abudawud/ci-deploy

Simple rsync command to syncronize source with target directory
https://github.com/abudawud/ci-deploy

bash linux linux-tools rsync

Last synced: 4 months ago
JSON representation

Simple rsync command to syncronize source with target directory

Awesome Lists containing this project

README

          

# ci-deploy

This is just simple rsync command that i use to deploy my project. If you confuse about the name of this app just chage it, i pick the name because this is the first time i learn CI/CD. I make this script just to hide what i do when i deploy my project rather tahn i type `rsync -rvn ...`. hehehe

## How To Use

just modify `.env` file based on your project and load it from your `.bashrc`

## How to implement it

this is my `.yml` file to implement this script

```yml
stages:
- deploy
deploy_testing:
stage: deploy
tags:
- testing_env
script:
- ci-deploy deploy PROJECT1 "Deploying testing env..."
only:
- /^hotfix-/
- /^feature-/
deploy_prod:
stage: deploy
tags:
- production_env
script:
- ci-deploy deploy PROJECT1 "Deploying production env..."
only:
- master
```

of course i'm use gitlab and gitlab-runner

**Hopefully useful :)**