DevOps CI/CD Versionamento e GIT

DevOps with GitHub Actions

CI/CD with GitHub Actions: automated pipelines for Node.js and Docker, YAML workflows, JEST testing, and Continuous Deployment to Docker Hub.

Course description

Automate Your Deployment — with GitHub Actions

Every time you push, your tests run automatically, the Docker image is built, and published to Docker Hub. This is CI/CD with GitHub Actions. In this course, we build a complete pipeline for a Node.js application — from workflow architecture all the way to automatic Continuous Deployment.

What We Build Together

  • GitHub Actions architecture: Events, Workflows, Jobs, Steps, and Runners
  • Node.js project with a REST API tested with JEST and Supertest
  • CI pipeline: YAML workflow that runs tests on every push
  • Containerizing the application with an optimized Dockerfile
  • CD pipeline: Docker image build and automatic push to Docker Hub
  • Managing Secrets in GitHub for credentials and sensitive variables
  • Complete flow: push → test → build → automatic deploy

Who This Course Is For

Developers who want to automate their testing and deployment process without having to configure Jenkins servers or external CI/CD platforms. GitHub Actions is built directly into the repository and is free for open-source projects.

What Changes with CI/CD

With an active pipeline, you can no longer push code and hope for the best. Every commit becomes a deliberate act: the system immediately tests the code and alerts you if something breaks. This is the foundation of professional team development.

Lessons list

I'll show you the complete architecture of GitHub Actions: how Events, Workflows, Jobs, Steps, and Runners connect to each other to form an automated pipeline. Understanding this structure is the starting point for writing YAML workflows that actually work.

Guarda lezione

Let's configure the Node.js project from scratch: folder structure, dependencies, and automated test setup with JEST and Supertest. By the end of this lesson you'll have a testable application ready to be integrated into the GitHub Actions pipeline.

Guarda lezione

Let's build the first Continuous Integration workflow with GitHub Actions. I'll guide you through writing the YAML file, defining trigger events, and configuring the steps that run the Node.js REST API tests automatically on every push to the repository.

Guarda lezione

Let me introduce the project we'll build together: a Node.js application with a REST API, automated tests, and a complete CI/CD pipeline using Docker and GitHub Actions. I'll walk you through the overall architecture and the goals we'll achieve lesson by lesson.

Guarda lezione

I'll show you how to build a REST API in Node.js and write automated tests with JEST and Supertest. We'll structure the routes, test HTTP responses, and ensure every push is automatically verified without any manual intervention.

Guarda lezione

I'll guide you through creating the YAML workflow in GitHub Actions for the complete CI/CD project: how to define the push trigger, configure the Node.js environment on the runner, and automatically run the JEST test suite on every code change.

Guarda lezione

Let's create the Dockerfile to containerize the Node.js application together. I'll explain each instruction — FROM, WORKDIR, COPY, RUN, CMD — and show you how to optimize the image using .dockerignore to exclude node_modules and files not needed at runtime.

Guarda lezione

I'll show you how to configure the Continuous Deployment workflow to Docker Hub. After the tests pass, GitHub Actions automatically builds the Docker image and pushes it to the registry. I'll explain the CD job structure and how to chain it after the CI job as a dependency.

Guarda lezione

I'll show you how to create and manage GitHub Secrets to protect Docker Hub credentials and any sensitive variables used in the pipeline: how to add them in the GitHub interface and reference them in the YAML file using the secrets.NAME syntax.

Guarda lezione

Let's put it all together and watch the full flow in action: from code push to workflow trigger, through test execution, Docker build, and finally the automatic image publication to Docker Hub. Your first fully working end-to-end CI/CD cycle.

Guarda lezione
Giovanni Pace

Giovanni Pace

Ingegnere Informatico · Pratola Peligna

  • 107 Courses
About the teacher

Sono un ingegnere informatico con oltre 15 anni di esperienza nel settore ICT. Mi occupo di sviluppo software, cybersecurity, data science e intelligenza artificiale, con particolare attenzione all’innovazione e all’automazione dei processi aziendali. Da anni svolgo anche attività di docenza e formazione, creando percorsi pratici e coinvolgenti su programmazione, DevOps, AI e sicurezza informatica.

This course includes

  • Lessons 10
  • Duration 1h 23m
  • Difficulty intermedio
  • Language it
  • Certificate No

Recently viewed