In this repo I made a pipeline on Jenkins for Forlorn game so everytime a new code is pushed to the GitHub it also pushes on the Docker Hub after building the image.
For the pre-requisites, need to setup the following tools:
- Docker
- Jenkins
- Kubernetes
- Git
After that pushed the code to Github.
The next step was to write Dockerfile and docker-compose file to create docker image of the web app.
Pushed the image to Docker hub after building it by using the command docker-compose up --build
Made a pipeline on Jenkins for Continuous Integration.
From the repository settings in Github, attached the webhook with Jenkins. So that on every push or pull we get info on Jenkins logs.
I also used serveo.net to expose local server to the internet. Because I can't connect the webhook with Jenkins on a localhost.
And finally wrote the pipeline code to connect all the steps together.
Forlorn A very simple narrative/ interactive fiction game created by my dear friend Tayyab Naveed.
Original Repo Link: https://github.com/TayyabNaveed16/forlorn