Skip to content

Instantly share code, notes, and snippets.

@zyegfryed
Last active January 15, 2021 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zyegfryed/a4fd5626b816e37d4161a7488f91e42e to your computer and use it in GitHub Desktop.
Save zyegfryed/a4fd5626b816e37d4161a7488f91e42e to your computer and use it in GitHub Desktop.
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