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
- Host: GitHub
- URL: https://github.com/abudawud/ci-deploy
- Owner: abudawud
- Created: 2020-06-22T15:40:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-01T06:10:16.000Z (over 5 years ago)
- Last Synced: 2025-03-01T03:24:39.877Z (12 months ago)
- Topics: bash, linux, linux-tools, rsync
- Language: Shell
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 :)**