Simple tool for auto-deployment
Project description
Automate adding manually ssh-key, cleaning directory from untracked files, pulling from remote etc... After pulling
easily configure post steps. This package can be added into your CI/CD pipeline. Tested on python 3.x
Getting started
# simply clone repo and cd into cloned repo
git clone git@github.com:komron-m/deployment.git && cd deployment
# after cloning copy test_config.json and set all actions and `keys`
cp tests/test_config.json /path/to/project_conf.json
# run script with one argument
python src/main.py /path/to/project_conf.json
# or use it as package after installing
pip install githubdeployment
Configs
{
"keys": {
"remote": "origin",
"repository_root": "/var/www/awesome-project",
"ssh_key": "/opt/deployment/id_rsa",
"working_branch": "master"
},
"actions": [
{
"description": "Install new dependencies",
"exe": "composer install --ignore-platform-reqs --no-interaction"
}
]
}
keysare mandatory, make sure all permissions are set for files and directories.actionscontain a list of action, wheredescriptionis plain message for logging andexeis command that run right aftergit pull ${remote} ${working_branch}. All actions run as onepipe.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file githubdeployment-2.0.1.tar.gz.
File metadata
- Download URL: githubdeployment-2.0.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e551b7a88072241f7f668a31efe46d668365a8832c19dcabf2f80041de9ed53
|
|
| MD5 |
52590e556ac86e49038ae32ca57f8d36
|
|
| BLAKE2b-256 |
055af0b7ed0cae69d42d0a8d93847d77b41b2dce0eb61afc365d20f065f6b95c
|
File details
Details for the file githubdeployment-2.0.1-py3-none-any.whl.
File metadata
- Download URL: githubdeployment-2.0.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
839468051ff65301994f6485dd01855c300aaef90499b1f746b3deeb2d7a032b
|
|
| MD5 |
bc41ee03cdb951bfd096217041a451dd
|
|
| BLAKE2b-256 |
4429e56f3ed81180788b0b1c937d82c6a451993f6e28318906248810e013b382
|