Skip to content

Commit

Permalink
Add .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamingregory committed Feb 5, 2019
1 parent 9197a56 commit c4414ad
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 3 additions & 3 deletions airflow/airflow.go
Expand Up @@ -70,9 +70,9 @@ func Init(path string, airflowVersion string) error {

// Map of files to create
files := map[string]string{
".dockerignore": include.Dockerignore,
"Dockerfile": fmt.Sprintf(include.Dockerfile,
version.GetTagFromVersion(airflowVersion)),
".dockerignore": include.Dockerignore,
"Dockerfile": fmt.Sprintf(include.Dockerfile, version.GetTagFromVersion(airflowVersion)),
".gitignore": include.Gitignore,
"packages.txt": "",
"requirements.txt": "",
".env": "",
Expand Down
11 changes: 11 additions & 0 deletions airflow/include/gitignore.go
@@ -0,0 +1,11 @@
package include

import "strings"

// Gitignore is the .gitignore template
var Gitignore = strings.TrimSpace(`
.astro
.git
.env
airflow_setttings.yaml
`)

0 comments on commit c4414ad

Please sign in to comment.