Skip to content

Instantly share code, notes, and snippets.

View brentlaster's full-sized avatar

Brent Laster brentlaster

View GitHub Profile
Lab 1, step 8
argocd app create roar-deploy-k8s --repo https://github.com/brentlaster/roar-deploy-k8s --path . --dest-server $CLUSTER_IP --dest-namespace roar
Lab 3, step 3
argocd repo add git@10.0.2.15:/git/repos/roar-k8s-helm.git --ssh-private-key-path ~/.ssh/id_rsa
Lab 4, step 9
argocd proj create jenkins-proj -d https://10.0.2.15:8443,* -s git@10.0.2.15:/git/repos/roar-min-deploy.git
Lab 4, step 11
This is some text.
@brentlaster
brentlaster / info.txt
Created January 18, 2024 18:06
Demo gist
This is some text.
@brentlaster
brentlaster / cicd3-test-run-job
Created February 4, 2024 13:31
Code for test-run job for CICD in 3 weeks workshop by @getskillsnow
test-run:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download candidate artifacts
uses: actions/download-artifact@v4
with:
name: greetings-jar
@brentlaster
brentlaster / cicd3-simple-test-script
Created February 4, 2024 13:35
Code for test script for CICD in 3 weeks course from @getskillsnow
# Simple test script for greetings jar
set -e
java -jar build/libs/greetings-ci-$1.jar ${@:2} > output.bench
IFS=' ' read -ra ARR <<< "${@:2}"
for i in "${ARR[@]}"; do
grep "^$i$" output.bench
done
@brentlaster
brentlaster / action.yml
Last active February 4, 2024 15:52
Sample files for @getskillsnow CICD in 3 weeks course
name: 'Test Action'
description: 'Runs a simple execution to validate compiled built deliverable'
author: 'attendee'
inputs:
artifact-version: # semantic version of the artifact from build
description: 'built version of artifact'
required: true
default: '1.0.0'
arguments-to-print: # rest of arguments to echo out
description: 'arguments to print out'