Skip to content

Instantly share code, notes, and snippets.

@jbontech
Forked from vfarcic/dagger.sh
Created December 30, 2023 19:32
Show Gist options
  • Save jbontech/8310ade461fc3d26e812356c34120917 to your computer and use it in GitHub Desktop.
Save jbontech/8310ade461fc3d26e812356c34120917 to your computer and use it in GitHub Desktop.
#####################################################################
# Dagger: The Missing Ingredient for Your Disastrous CI/CD Pipeline #
#####################################################################
# Additional Info:
# - Dagger: https://dagger.io
# - Your CI/CD Pipelines Are Wrong - From Monoliths To Events: https://youtu.be/TSQ0QpfCi1c
# - Is CUE The Perfect Language For Kubernetes Manifests (Helm Templates Replacement)?: https://youtu.be/m6g0aWggdUQ
# - Is Timoni With CUE a Helm Replacement?: https://youtu.be/bbE1BFCs548
# -
#########
# Setup #
#########
# Make sure that Docker Desktop is up-and-running.
# Create a Kubernetes cluster (a local cluster like KinD,
# Minikube, or Docker Desktop should be fine).
# Install `dagger` CLI by following the instructions at
# https://docs.dagger.io/quickstart/729236/cli.
git clone https://github.com/vfarcic/silly-demo
cd silly-demo
git pull
git checkout -t origin/dagger
################################################
# Dagger: CI/CD With Code That Runs Everywhere #
################################################
DEV=true dagger run go run dagger/main.go
kubectl get all
DEV=true dagger run go run dagger/main.go
cat dagger/main.go
cat .github/workflows/ci.yaml
###########
# Destroy #
###########
git checkout master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment