Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.43 KB

README.md

File metadata and controls

43 lines (35 loc) · 1.43 KB

python-actions Build Status

Deploy pipelines automatically with GitHub Actions

Install locally

$ pipenv shell
(python-actions) $ pre-commit install

Deploy

Add deployment (currently dummy config) to pipeline.yaml:

(python-actions) $  python3 create_deployment.py auth3 estensen/hello.py "hello world app"
Adding deployment file...
Deployment created!
{'auth3': {'docker-image': 'estensen/hello.py', 'description': 'hello world app'}}

Commit, push and create a pull request with pipeline.yaml. An Action will run deploy.py which will put the pipeline into production and move the configuration to pipelines.yaml so all pipelines can be recreated with one deployment later if necessary.

Run locally

(python-actions) $ python3 create_deployment.py login estensen/login "login app"
Adding deployment file...
{'login': {'docker-image': 'estensen/login', 'description': 'login app'}}
(python-actions) $ python3 deploy.py
Pipelines in producton: {'id'}
Deploying...
Deployed {'login': {'docker-image': 'estensen/login', 'description': 'login app'}}

Test locally

(python-actions) $ pytest
============================ test session starts =============================
...
collected 1 item

test_hello.py .                                                        [100%]

============================= 1 passed in 0.01s ==============================