Skip to content

Instantly share code, notes, and snippets.

@vfarcic
Last active April 2, 2022 22:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vfarcic/bbbd20cac7fb14eadbfef165766be30d to your computer and use it in GitHub Desktop.
Save vfarcic/bbbd20cac7fb14eadbfef165766be30d to your computer and use it in GitHub Desktop.
# Source: https://gist.github.com/bbbd20cac7fb14eadbfef165766be30d
########################################################################
# How To Create Preview Environments And Collaborate Through Livecycle #
# https://youtu.be/K6MBe4laf9A #
########################################################################
# Additional Info:
# - Livecycle: https://livecycle.io
# - GitHub CLI - How to manage repositories more efficiently: https://youtu.be/BII6ZY2Rnlc
# - Environments Based On Pull Requests (PRs): Using Argo CD To Apply GitOps Principles On Previews: https://youtu.be/cpAaI8p4R60
# - Serverless Computing With Knative And Containers As A Service (CaaS): https://youtu.be/8vrLEbwSu7U
# - Okteto - How To Create Instant Development Environments In Kubernetes: https://youtu.be/yjgHHUT-5-s
# - Gitpod - Instant Development Environment Setup: https://youtu.be/QV1fYt-7SLU
#########
# Setup #
#########
gh repo fork vfarcic/devops-toolkit --clone
cd devops-toolkit
########
# Demo #
########
git checkout -b livecycle-feature
# Open `config.toml` in your favorite editor
# Change something and save the changes
git add .
git commit -m "Livecycle"
git push --set-upstream origin livecycle-feature
gh pr create \
--title "Livecycle" \
--body "Is it any good?"
# Watch https://youtu.be/BII6ZY2Rnlc if you are not familiar with GitHub CLI
###########
# Destroy #
###########
git checkout master
git branch -D livecycle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment