Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the template repo composable #793

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
.vscode
.DS_Store
deprecated-*
kubeconfig-*
kubeconfig-*
tmp
27 changes: 27 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
CLOUD_PROVIDER ?=
VCS_PROVIDER ?=

default: help

.PHONY: help
Expand All @@ -15,3 +18,27 @@ validate: ## terraform validate
terraform -chdir=$$dir init -backend=false || exit 1; \
terraform -chdir=$$dir validate || exit 1; \
done

.PHONY: generate
generate:
@rm -Rf tmp
@mkdir tmp

ifeq ($(CLOUD_PROVIDER), )
@echo "CLOUD_PROVIDER envvar must be set"
@exit 1
endif

ifeq ($(VCS_PROVIDER), )
@echo "VCS_PROVIDER envvar must be set"
@exit 1
endif

@if ! test -d common/cloud/${CLOUD_PROVIDER}; then echo "Cannot find directory: common/cloud/${CLOUD_PROVIDER}" && exit 1; fi
@if ! test -d common/vcs/${VCS_PROVIDER}; then echo "Cannot find directory: common/vcs/${VCS_PROVIDER}" && exit 1; fi
@if ! test -d templates/${CLOUD_PROVIDER}-${VCS_PROVIDER}; then echo "Cannot find directory: templates/${CLOUD_PROVIDER}-${VCS_PROVIDER}" && exit 1; fi

@cp -r common/templates/* tmp
@cp -r common/cloud/${CLOUD_PROVIDER}/* tmp
@cp -r common/vcs/${VCS_PROVIDER}/* tmp
@cp -r templates/${CLOUD_PROVIDER}-${VCS_PROVIDER}/* tmp
7 changes: 0 additions & 7 deletions aws-github/.gitignore

This file was deleted.

21 changes: 0 additions & 21 deletions aws-github/LICENSE

This file was deleted.

23 changes: 0 additions & 23 deletions aws-github/atlantis.yaml

This file was deleted.

Binary file removed aws-github/logo.png
Binary file not shown.
21 changes: 0 additions & 21 deletions aws-github/registry/environments/development/docker-config.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions aws-github/registry/environments/development/metaphor.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions aws-github/registry/environments/development/metaphor/values.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions aws-github/registry/environments/production/docker-config.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions aws-github/registry/environments/production/metaphor.yaml

This file was deleted.

This file was deleted.

36 changes: 0 additions & 36 deletions aws-github/registry/environments/production/metaphor/values.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions aws-github/registry/environments/staging/docker-config.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions aws-github/registry/environments/staging/metaphor.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions aws-github/registry/environments/staging/metaphor/Chart.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions aws-github/registry/environments/staging/metaphor/values.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions aws-gitlab/atlantis.yaml

This file was deleted.

Binary file removed aws-gitlab/logo.png
Binary file not shown.
Loading