Skip to content

Instantly share code, notes, and snippets.

@bburky
Created October 21, 2020 21: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 bburky/ae625a83c1c0875a66c7e30198fef5ae to your computer and use it in GitHub Desktop.
Save bburky/ae625a83c1c0875a66c7e30198fef5ae to your computer and use it in GitHub Desktop.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment