Skip to content

Instantly share code, notes, and snippets.

@vfarcic
Last active January 18, 2022 00:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vfarcic/3ce238a85ff5537919d394bb9ec57e8e to your computer and use it in GitHub Desktop.
Save vfarcic/3ce238a85ff5537919d394bb9ec57e8e to your computer and use it in GitHub Desktop.
# Links to gists for creating a serverless Jenkins X cluster
# gke-jx-serverless.sh: https://gist.github.com/a04269d359685bbd00a27643b5474ace
# eks-jx-serverless.sh: https://gist.github.com/69a4cbc65d8cb122d890add5997c463b
# aks-jx-serverless.sh: https://gist.github.com/a7cb7a28b7e84590fbb560b16a0ee98c
# install-serverless.sh: https://gist.github.com/f592c72486feb0fb1301778de08ba31d
GH_USER=[...]
jx delete application \
$GH_USER/jx-serverless \
--batch-mode
jx create quickstart \
--filter golang-http \
--project-name jx-prow \
--batch-mode
cd jx-prow
jx get activities \
--filter jx-prow \
--watch
git checkout -b chat-ops
echo "ChatOps" | tee README.md
git add .
git commit \
--message "My first PR with prow"
git push --set-upstream origin chat-ops
jx create pullrequest \
--title "PR with prow" \
--body "What I can say?" \
--batch-mode
git checkout master
cat OWNERS
GH_USER=[...]
GH_APPROVER=[...]
echo "approvers:
- $GH_USER
- $GH_APPROVER
reviewers:
- $GH_USER
- $GH_APPROVER
" | tee OWNERS
git add .
git commit \
--message "Added an owner"
git push
open "https://github.com/$GH_USER/jx-prow/settings/collaboration"
git checkout master
git pull
git checkout -b my-pr
echo "My PR" | tee README.md
git add .
git commit \
--message "My second PR with prow"
git push --set-upstream origin my-pr
jx create pullrequest \
--title "My PR" \
--body "What I can say?" \
--batch-mode
kubectl -n cd describe cm plugins
cd ..
GH_USER=[...]
hub delete -y \
$GH_USER/environment-tekton-staging
hub delete -y \
$GH_USER/environment-tekton-production
hub delete -y $GH_USER/jx-prow
rm -rf jx-prow
rm -rf ~/.jx/environments/$GH_USER/environment-tekton-*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment