Skip to content

Instantly share code, notes, and snippets.

View zloeber's full-sized avatar

Zachary Loeber zloeber

View GitHub Profile
@zloeber
zloeber / gist:1a983fe6747666abaa30d389f66ae99b
Created January 16, 2020 02:37
ado-linked-var-group-4
{
"authorized": true,
"description": "${description}",
"name": "${name}",
"type": "AzureKeyVault",
"variableGroupProjectReferences": [
{
"projectReference": {
"id": "${project_id}",
"name": "${project_name}"
@zloeber
zloeber / gist:445233e082f0b4252563e5fc368baffc
Created January 16, 2020 02:35
ado-linked-var-group-3
{
"authorized": true,
"description": "SuperSecret Variable Group (SuperSecretVault)",
"name": "SuperSecret",
"type": "AzureKeyVault",
"variableGroupProjectReferences": [
{
"projectReference": {
"id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "MyADOProject"
@zloeber
zloeber / gist:f55f1ca6e0650057353a0f843d6d0524
Created January 16, 2020 02:31
ado-linked-var-groups-1
az extension add --name azure-devops
@zloeber
zloeber / gist:097771685b5be81203fab3f3f796dd2f
Created January 2, 2020 19:14
Helm: helm-git plugin install
helm plugin install https://github.com/aslafy-z/helm-git.git
@zloeber
zloeber / gist:991ba9c30adabd8041aea0e918f08493
Created January 2, 2020 19:13
helm: helm-namespace plugin install
plugin install https://github.com/thomastaylor312/helm-namespace
@zloeber
zloeber / gist:b8e2f06a4198ef3a2db81532838d6a03
Created January 2, 2020 19:11
Helmfile: presync hook namespace creation
- events: ["presync"]
showlogs: true
command: "/bin/sh"
args:
- "-c"
- >-
kubectl get namespace "{{`{{ .Release.Namespace }}`}}" >/dev/null 2>&1 || kubectl create namespace "{{`{{ .Release.Namespace }}`}}";
@zloeber
zloeber / gist:a55506c4f5ce17be6bc84a649ab0ca65
Created January 2, 2020 14:02
hugo multi-publish release post
git checkout master
git merge develop
git add --all . && git commit -m 'post: some awesome content approved to publish'
@zloeber
zloeber / gist:414511f69b4e5228d143a38420dd3f9e
Created January 2, 2020 14:01
hugo multi-provider publish new post
git checkout develop
make new/post some_awesome_content.md
hugo new content/posts/new_blog_post.md
git add --all . && git commit -m 'post: some awesome content added'
git push origin develop
@zloeber
zloeber / gist:777c345d69998f054a78e076860e5d02
Created January 2, 2020 14:00
hugo multi-provider publish with azure devops
name: $(BuildDefinitionName).$(DayOfYear)$(Rev:.r)
trigger:
batch: true
branches:
include:
- master
- develop
# Don't trigger on PRs
pr: none
### Keybase proof
I hereby claim:
* I am zloeber on github.
* I am zloeber (https://keybase.io/zloeber) on keybase.
* I have a public key ASBOs716i1Js9FIAr-c1ozV8HUyal6AIrI1Gr-HKQlwzQAo
To claim this, I am signing this object: