‏ ‏ ‎ ‏ ‏ ‎

Credits to Mr. Christian Aberger - this notes are also based on his lecture @ HTL Leonding

1. Continous Integration vs Delivery vs Deployment

1.1. Continuous Integration

Developers practicing continuous integration merge their changes back to the main branch as often as possible. The developer’s changes are validated by creating a build and running automated tests against the build. By doing so, you avoid integration challenges that can happen when waiting for release day to merge changes into the release branch.

Continuous integration puts a great emphasis on testing automation to check that the application is not broken whenever new commits are integrated into the main branch.

1.2. Continuous Delivery

Continuous delivery is an extension of continuous integration since it automatically deploys all code changes to a testing and/or production environment after the build stage.

This means that on top of automated testing, you have an automated release process and you can deploy your application any time by clicking a button.

In theory, with continuous delivery, you can decide to release daily, weekly, fortnightly, or whatever suits your business requirements. However, if you truly want to get the benefits of continuous delivery, you should deploy to production as early as possible to make sure that you release small batches that are easy to troubleshoot in case of a problem.

1.3. Continuous Deployment

Continuous deployment goes one step further than continuous delivery. With this practice, every change that passes all stages of your production pipeline is released to your customers. There’s no human intervention, and only a failed test will prevent a new change to be deployed to production.

Continuous deployment is an excellent way to accelerate the feedback loop with your customers and take pressure off the team as there isn’t a Release Day anymore. Developers can focus on building software, and they see their work go live minutes after they’ve finished working on it.

cicd pipeline
  • continuous integration

    • local development in IDE.

    • commit/push to remote repo

    • testing the code with gh-actions

  • continuous delivery

    • continuous integration

    • create a release and deliver to

      • staging server or

      • gh-packages

  • continuous development

    • continuous integration + continuous delivery

    • deployment on production server (or cloud, …​)

2. Overview - What we will do!

  1. Create a Quarkus app providing a simple restful endpoint.

  2. This app will be pushed automatically to github

  3. Prepare the remote server for deploying the quarkus app (we will use an oracle vm instance)

  4. Create the gh-actions pipeline

  5. Create a service for starting the quarkus-app on the remote server

3. Creating a Virtual Maschine Instance in Oracle Cloud

4. Create a Simple Quarkus Application

5. Create a Continous Delivery Pipeline in gh-actions