cci-moc / ansible-switches-auto-deploy Goto Github PK
View Code? Open in Web Editor NEWAutomated deployment of MOC/OCT switches on commit to ansible-switches repo
Automated deployment of MOC/OCT switches on commit to ansible-switches repo
It would be nice to restructure this repository to have a more conventional project layout. That might look something like:
.
├── Containerfile
├── README.md
├── requirements.txt
├── slack_notifier
│ ├── __init__.py
│ ├── github.py
│ ├── notifier.py
│ └── slack.py
├── test-requirements.txt
└── tests
├── test_github.py
├── test_notifier.py
└── test_slack.py
Along with the reorganization we should add a pyproject.toml
so that the project can be installed using pip install
.
This project includes a small test suite. We should add a github workflow that will run the included tests for any pull requests.
We will ultimately be deploying this project in OpenShift, which means we'll need a source for an appropriate container image.
Add a GitHub workflow to the project that will build and publish a new container image whenever a commit merges to the main
branch. Consider also adopting a versioning strategy (e.g., semantic versioning) and tagging images appropriately when there is a new release.
Once this workflow is in place we can reference the published image in the kubernetes manifests.
"Linting" is the process of analyzing code for syntax errors, formatting issues, and other minor problems. We should add a github workflow that will perform these simple tests for any pull requests.
We typically use pre-commit to manage this sort of process. A typical configuration would include something like flake8
for linting and black
for formatting, although recently there has been a lot of excitement around ruff, which can do both.
As part of implementing this feature, you will want to arrange to run these tools automatically in your local repository before creating a pull request (ideally, before every commit); this helps avoid a variety of problems.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.