YAML Pipelines Walkthrough - GitHub Actions & Workflows

Опубликовано: 25 Февраль 2025
на канале: Julie Ng
5,487
145

Let's look at some real orld YAML pipelines for GitHub Actions. For a Nuxt.js application, we have CI/CD pipelines that test code, build and promote docker images and deploy to multiple Kubernetes clusters without passwords! I'll walkthrough various templates, describe the opinionated reasoning and decisions behind the code. We'll also go into the GitHub UI to see how to leverage GitHub Environments properly for creating security boundaries to your deployment boundaries.

Note: this is a very opinionated workflow, not a golden solution for everyone. The focus of this channel is to teach you how to think, not to give you free fish.

===== Pipeline Source Code =====

YAML Pipeline Source Code on GitHub:
https://github.com/julie-ng/cloud-arc...

===== Related Videos =====

(Simple?) Real World Azure Pipelines YAML Walkthrough
   • (Simple?) Real World Azure Pipelines ...  

Deploy from GitHub Actions without Passwords | Watch Me Work
   • Deploy from GitHub Actions without Pa...  

===== My DevOps Newsletter =====

Sign up for my free email newsletter and email course here
https://jngo.io/devopsirl

===== Chapters =====

00:00 Intro & Contents
01:29 GitHub Actions UI
04:10 cd.yaml Pipeline
04:52 Workflow Triggers
06:11 Concurrent Jobs
06:40 Password-less Authentication
07:18 _deploy.yaml
07:30 kubelogin
11:11 kubelogout
12:29 _ci.yaml
16:01 _config.yaml
22:25 _docker.yaml
23:41 GitHub Environments
26:37 Push to Container Registry
27:10 Vulnerability Scan
28:17 Promote to Staging
29:57 kubectl apply
30:31 kustomize templates
35:36 end to end tests
38:35 Delete Triggers and Branch Filters
39:35 Closing