This is my code for Task-1, DevOn interview process.
Create a successful Build Pipeline in Azure DevOps
create a hello world program and upload to git hub pull from git hub and execute the pipeline automatically when some code changes in GitHub.
I have used github and github actions to demonstrate the build process deploying a static web page hosted on azure website. This static website is created using basic html and css and is hosted on azure static webapp.
My rationale to use github actions instead of azure devops is as follows:
- Microsoft doesn't provides a free build agent without a request (I have raised a rquest with Microsoft,not certain when will I get one)
- To Showcase the solution using github actions as an alternative to azure devops pieplines
Nevertheless, I have created the same project and build pipeline using Azure Devops as well
- Clone the repoistory in your local and create a feature branch, example: feature/<sample-branch-name>, please adhere to the naming convention of the branch else the pipeline won't auto trigger
- Edit the required tags in the file index.html under the dist folder and push the changes to github. github actions gets triggered and you can view your changes navigating to the azure website
- Simultaneously Azure Devops Pipeline will also get triggered