cinit
is a command-line tool written in Rust that initializes CI/CD configuration files for GitLab CI, GitHub Actions, Bitbucket Pipelines, and Jenkins. It helps developers quickly set up continuous integration and deployment pipelines for their projects.
- Initialize GitLab CI configuration file.
- Initialize GitHub Actions configuration file.
- Initialize Bitbucket Pipelines configuration file.
- Initialize Jenkins configuration file.
- Rust (latest stable version)
- Docker (optional, for building and running the project in a container)
-
Clone the repository:
git clone https://github.com/yourusername/cinit.git cd cinit
-
Build the project:
cargo build --release
-
Install the binary:
sudo cp target/release/cinit /usr/local/bin/
-
Build the Docker image:
docker build -t cinit .
-
Run the Docker container to check the version:
docker run --rm cinit
After installation, you can use the cinit command to initialize CI/CD configuration files.
-
Initialize GitLab CI configuration:
cinit gitlabci
-
Initialize GitHub Actions configuration:
cinit github
-
Initialize Bitbucket Pipelines configuration:
cinit bitbucket
-
Initialize Jenkins configuration:
cinit jenkins
For help with commands, you can use the --help flag:
cinit --help
To run the tests, use:
cargo test
A Makefile is provided to simplify common tasks.
-
Build the project:
make build
-
Install the binary:
make install
-
Uninstall the binary:
make uninstall
-
Clean the project:
make clean
-
Run tests:
make test
A Dockerfile is provided to build and run the project in a Docker container:
docker build -t cinit .
docker run --rm cinit
Contributions are welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes and commit them (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
- Clap - A simple to use, full-featured Command Line Argument Parser for Rust.
- Rust - A language empowering everyone to build reliable and efficient software.
This project is licensed under the MIT License. See the LICENSE file for details.
If you have any questions or suggestions, feel free to reach out at kukuhsatriowibowo@gmail.com.
Happy Coding!