Skip to content

Instantly share code, notes, and snippets.

@zyegfryed
Last active Jan 15, 2021
Embed
What would you like to do?
kargo alias
#
# Usage: kargo manifests kargo.edn
#
# Note: MUST be a function and NOT an alias because `pwd` MUST be interpreted each time the command runs.
# When using an alias, `pwd` will resolve to $HOME instead!
#
function kargo() {
docker run --rm -v `pwd`:`pwd` -w `pwd` \
-e ENVIRONMENT=${ENVIRONMENT:=preprod} \
-e ZONE=${ZONE:=ch-gva2-1} \
-e LOCATION=${LOCATION:=gva2} \
-e CLUSTER=${CLUSTER:=kube-preprod-gva2-1} \
-e REGISTRY=${REGISTRY:='registry.internal.exoscale.ch'} \
-e ARGOCD_APP_SOURCE_TARGET_REVISION=${ARGOCD_APP_SOURCE_TARGET_REVISION:=master} \
exoscale/kargo:latest "$@"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment