Skip to Main Content
Building and Deploying a Spring Boot App with PostgreSQL on OCI using GitHub Actions

About This Workshop

Youtube Video

About This Workshop
Learn how to build, containerize, and deploy a production-ready Spring Boot application using PostgreSQL on Oracle Cloud Infrastructure (OCI). In this hands-on workshop, you will go step-by-step through the entire lifecycle of a modern cloud-native application—from code to deployment—using industry-best practices and fully automated pipelines.

You will start by setting up the required OCI services, including networking components, compartments, and access credentials. Then, you will provision and configure a managed PostgreSQL database and connect your Spring Boot application to it using secure environment variables.

Building on this foundation, you will learn how to use GitHub Actions to automate every stage of your CI/CD pipeline. The workflow will check out your source code, install JDK 17, build your Spring Boot JAR, create and push a Docker image to OCIR, and finally deploy your application on OCI using OCI Container Instances. You will explore how the deployment process dynamically discovers the correct availability domain, generates the necessary JSON payloads for container, VNIC, and compute shape configurations, and launches a fully functional container instance with public network access.

By the end of the workshop, you will have a fully automated pipeline that builds, packages, stores, and deploys your Spring Boot application on Oracle Cloud—with each new push to the main branch triggering a fresh deployment. You will understand how your application connects to PostgreSQL through configurable environment variables, how container port mappings are defined, and how all components work together for smooth and repeatable cloud deployments.

This workshop is ideal for developers, DevOps engineers, and cloud practitioners who want a practical, end-to-end understanding of deploying containerized Java applications on OCI using modern CI/CD automation tools.

Workshop Info

3 hours
  • Lab 1 - GitHub Project Setup
  • Lab 2 - Create OCI Resources
  • Lab 3 - Configure GitHub Repository Secrets and Variables for OCI Deployment
  • Lab 4 - Release Application to OCI Using GitHub Actions
  • Familiarity with GitHub is desirable, but not required
  • Some understanding of cloud and database terms is helpful
  • Familiarity with Oracle Cloud Infrastructure (OCI) is helpful

Other Workshops you might like

Other Workshops you might like Cards