Usage:
ARGOCD_APP_SOURCE_TARGET_REVISION=dev-123 ENVIRONMENT=dev kustomize build .
If this is run from an Argo CD app of apps ARGOCD_APP_SOURCE_TARGET_REVISION
should be automatically populated.
apiVersion: argoproj.io/v1alpha1 | |
kind: Application | |
metadata: | |
name: hello-world | |
spec: | |
source: | |
path: apps/hello-world/$(ENVIRONMENT)/ | |
targetRevision: $(ARGOCD_APP_SOURCE_TARGET_REVISION) | |
destination: | |
namespace: hello-world |
namespace: argo-cd | |
bases: | |
- environment-variables/ | |
resources: | |
- hello-world.yaml | |
# List other apps of your app of apps here |