-
Notifications
You must be signed in to change notification settings - Fork 12
Run as Docker Container
-
Open cmd/terminal and navigate to the path where the tool is cloned.
cd <path-to-the-repository>
-
Run the following command to build the tool with docker.
docker build -t automate-branch-rules .
-
Run the following command to start the tool.
docker run -it --name branch-rules automate-branch-rules
-
Enter the organization name, PAT and Execution type when prompted. If choosing single repository add/remove you will also have to provide Repository Name.
-
Verify in GitHub whether the rules are added.
-
After successful run you can remove the container and image. Even if you want to re-run you will have to remove it or use another image name and container name in docker commands.
-
Execute the following command to remove the container.
docker container rm branch-rules
-
Execute the following command to remove the image.
docker rmi automate-branch-rules