Java Spring Boot (Part 2)
Neil Haddley โข October 26, 2023
Generating a Spring Boot project with start.spring.io, running it locally, and deploying it to Azure App Service with GitHub Actions
I used https://start.spring.io, Visual Studio Code, GitHub and Microsoft Azure to generate an Spring application, to run the Spring application on my laptop and to deploy the Spring application to Microsoft Azure
Under the hood: What the workflow file does
Azure added a GitHub Actions workflow file to my repository, and the screenshot shows it. It runs when I push to the main branch, and it can also be started by hand. A build job checks out the code, sets up Java 17, runs mvn clean install, and uploads the JAR file. A deploy job waits for the build job, downloads the JAR file, and sends it to the haddley-java Web App using a publish profile that GitHub keeps as a secret. That is why pushing a commit later in this post redeployed the site.













































