Skip to content

Instantly share code, notes, and snippets.

View dennybaa's full-sized avatar

Denis Baryshev dennybaa

View GitHub Profile
@dennybaa
dennybaa / kubconfig
Created April 14, 2022 07:05
~/.kube/config generator
#!/bin/sh
## ~/.kube/config generator
##
## - creates ~/.kube/config file with the provided context name
## - uses authentication helper which cats token from the path given (used with volume projection)
: ${KUBE_CONTEXT:?kube context name is not provided}
: ${KUBE_TOKENPATH:?path to Kubernetes token path is not provided}
mkdir -p $HOME/.kube/bin
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: webapp-playdemo
namespace: argocd
spec:
generators:
- list:
elements:
- stage: dev
name: Publish Image
on:
workflow_dispatch:
inputs:
imageName:
type: string
description: Directory and the image name with a Dockerfile
env: