Last active
January 15, 2021 09:33
-
-
Save zyegfryed/a4fd5626b816e37d4161a7488f91e42e to your computer and use it in GitHub Desktop.
kargo alias
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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