{"id":19327107,"url":"https://github.com/nishkarshraj/az-dev-community-demo","last_synced_at":"2025-08-18T21:16:17.974Z","repository":{"id":99062859,"uuid":"389108738","full_name":"NishkarshRaj/az-dev-community-demo","owner":"NishkarshRaj","description":"Azure DevOps Pipelines with GitHub as VCS","archived":false,"fork":false,"pushed_at":"2023-12-15T05:56:27.000Z","size":16,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T06:25:52.746Z","etag":null,"topics":["azure-devops","github"],"latest_commit_sha":null,"homepage":"https://www.youtube.com/watch?v=BtwQX4UP9BE","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NishkarshRaj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-07-24T13:44:08.000Z","updated_at":"2021-07-25T06:34:59.000Z","dependencies_parsed_at":"2023-12-15T06:53:31.592Z","dependency_job_id":null,"html_url":"https://github.com/NishkarshRaj/az-dev-community-demo","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/NishkarshRaj/az-dev-community-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NishkarshRaj%2Faz-dev-community-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NishkarshRaj%2Faz-dev-community-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NishkarshRaj%2Faz-dev-community-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NishkarshRaj%2Faz-dev-community-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NishkarshRaj","download_url":"https://codeload.github.com/NishkarshRaj/az-dev-community-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NishkarshRaj%2Faz-dev-community-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271061722,"owners_count":24692606,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure-devops","github"],"created_at":"2024-11-10T02:16:00.276Z","updated_at":"2025-08-18T21:16:17.910Z","avatar_url":"https://github.com/NishkarshRaj.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure DevOps Pipelines with GitHub as VCS\n\n## Agenda\n\n1. Create a Springboot Application with Maven and Java\n2. Host the Springboot Application on GitHub\n3. Deploy your packaged file to Azure Feeds\n4. Create a Maven Release for your project\n5. Setup Build Pipeline for Maven Release\n6. Setup Release Pipeline in Azure DevOps for deployment to K8s\n\n### 1. Create a Springboot Application with Maven and Java\n\nhttps://github.com/nishkarshRaj/maven-using-cmd\n\n### 2. Host the Springboot Application on GitHub\n\n```\ngit init\ngit remote add origin \"\"\ngit config --local user.name \"\"\ngit config --local user.email \"\"\n\ngit add \"\"\ngit commit -m \"\"\ngit push -u origin [branch name]\n```\n\n### 3. Deploy your packaged file to Azure Feeds\n\n```xml\n\t\u003crepositories\u003e\n\t \u003crepository\u003e\n\t\t\u003cid\u003eNishkarshRaj\u003c/id\u003e\n\t\t\u003curl\u003ehttps://pkgs.dev.azure.com/NishkarshRaj/_packaging/NishkarshRaj/maven/v1\u003c/url\u003e\n\t\t\u003creleases\u003e\n\t\t  \u003cenabled\u003etrue\u003c/enabled\u003e\n\t\t\u003c/releases\u003e\n\t\t\u003csnapshots\u003e\n\t\t  \u003cenabled\u003etrue\u003c/enabled\u003e\n\t\t\u003c/snapshots\u003e\n\t  \u003c/repository\u003e\n\t\u003c/repositories\u003e\n\n\t\u003cdistributionManagement\u003e\n\t  \u003crepository\u003e\n\t\t\u003cid\u003eNishkarshRaj\u003c/id\u003e\n\t\t\u003curl\u003ehttps://pkgs.dev.azure.com/NishkarshRaj/_packaging/NishkarshRaj/maven/v1\u003c/url\u003e\n\t\t\u003creleases\u003e\n\t\t  \u003cenabled\u003etrue\u003c/enabled\u003e\n\t\t\u003c/releases\u003e\n\t\t\u003csnapshots\u003e\n\t\t  \u003cenabled\u003etrue\u003c/enabled\u003e\n\t\t\u003c/snapshots\u003e\n\t  \u003c/repository\u003e\n\t\u003c/distributionManagement\u003e\n```\n\n```\nmvn clean install\nmvn deploy\n```\n\n### 4. Create a Maven Release for your project\n\n```xml\n\t\u003cscm\u003e\n        \u003cdeveloperConnection\u003escm:git:https://github.com/NishkarshRaj/az-dev-community-demo\u003c/developerConnection\u003e\n      \u003ctag\u003enish-1.0.0\u003c/tag\u003e\n   \u003c/scm\u003e\n\n\t\u003cbuild\u003e\n\t\t\u003cplugins\u003e\n\t\t\t\u003cplugin\u003e\n\t\t\t\t\u003cgroupId\u003eorg.apache.maven.plugins\u003c/groupId\u003e\n\t\t\t\t\u003cartifactId\u003emaven-release-plugin\u003c/artifactId\u003e\n\t\t\t\t\u003cversion\u003e3.0.0-M4\u003c/version\u003e\n\t\t\t\t\t\u003cconfiguration\u003e\n\t\t\t\t\t\t\u003cusername\u003eNishkarshRaj\u003c/username\u003e\n\t\t\t\t\t\t\u003cpassword\u003e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\u003c/password\u003e\n\t\t\t\t\t\u003c/configuration\u003e\n\t\t\t\t  \u003c/plugin\u003e\n\t\t\t\t\n\t\t\t\u003cplugin\u003e\n\t\t\t \u003cgroupId\u003eorg.springframework.boot\u003c/groupId\u003e\n\t\t\t \u003cartifactId\u003espring-boot-maven-plugin\u003c/artifactId\u003e\n\t\t\t\u003c/plugin\u003e\n\t\t\u003c/plugins\u003e\n\t\u003c/build\u003e\n```\n\n```\ngit checkout master\ngit config --local user.name \"\"\ngit config --local user.email \"\"\nmvn release:prepare --batch-mode\nmvn release:perform\n```\n\n### 5. Setup Build Pipeline for Maven Release\n\n### 6. Setup Release Pipeline in Azure DevOps for deployment to K8s\n\n```\ndocker build -t [] -f [] .\ndocker tag [] []\n\naz login --use-device-code\naz acr login -n azdev\n\ndocker push []\n\nkubectl apply -f k8s.yaml\n```\n\n```\nACR_NAME=[]\nACR_REGISTRY_ID=$(az acr show --name $ACR_NAME --query id --output tsv)\naz ad sp create-for-rbac --scopes $ACR_REGISTRY_ID --role acrpull\n\nkubectl create secret docker-registry cred \\\n--namespace default \\\n--docker-server=azdev.azurecr.io \\\n--docker-username=$SP_APP_ID \\\n--docker-password=$SP_PASSWD\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnishkarshraj%2Faz-dev-community-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnishkarshraj%2Faz-dev-community-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnishkarshraj%2Faz-dev-community-demo/lists"}