Skip to content

Devaansh-Kumar/Employee-Management-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TASK 9

STEPS TAKEN

To create a CI/CD pipeline to build docker image and upload to docker hub, I have created a github_cicd.yaml file as follows

On pushing this code to github you can see the workflow run successfully and upload the build docker image to docker hub by logging in my credentials.

For the second part of this task we had to take 2 numbers and a token at /challenge as a response from the API hosted at fdeployserver.up.railway.app. Then we take the sum of both the numbers along with the token as a POST request at /deploy.

I have created a github workflow for it as follows:

Whenever I run the commands using the terminal or test the API using Postman, I get an OK response but even after a lot of tries I am not able to figure out why the workflow does not run for the post request.

I have written the following python script instead to try to do the same task and it works properly: