Skip to content

Commit c8da197

Browse files
authored
Merge pull request #144 from mboret/add_missing_rsync_env
add missing rsync pattern env variable and fix readme
2 parents a1a1d87 + d2414da commit c8da197

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

README.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ usage: |-
6868
source_type = "python"
6969
7070
rsync_pattern = [
71-
"--exclude='**tests**'"
72-
"--exclude="'**__pycache__**'"
73-
"--include=module/{a,b,c}/"
74-
"--include='*.py'"
71+
"--exclude='**tests**'",
72+
"--exclude='**__pycache__**'",
73+
"--include=module/{a,b,c}/",
74+
"--include='*.py'",
7575
"--exclude='module/*'"
7676
]
7777
}

archive.tf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ resource "null_resource" "build" {
2020
provisioner "local-exec" {
2121
command = "${path.module}/build.sh"
2222
environment = {
23-
DIST_DIR = data.null_data_source.dist.outputs.path
24-
SOURCE_DIR = var.source_dir
25-
SOURCE_TYPE = var.source_type
26-
PACKAGE_FILE = var.package_file
23+
DIST_DIR = data.null_data_source.dist.outputs.path
24+
SOURCE_DIR = var.source_dir
25+
SOURCE_TYPE = var.source_type
26+
PACKAGE_FILE = var.package_file
27+
RSYNC_PATTERN = join(" ", var.rsync_pattern)
2728
}
2829
}
2930
}

0 commit comments

Comments
 (0)