-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add nextstrain-automation build-configs to phylogenetic workflow #37
- Loading branch information
Showing
3 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
custom_rules: | ||
- build-configs/nextstrain-automation/deploy.smk | ||
|
||
deploy_url: "s3://nextstrain-data" |
15 changes: 15 additions & 0 deletions
15
phylogenetic/build-configs/nextstrain-automation/deploy.smk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
""" | ||
This part of the workflow handles automatic deployments of the zika build. | ||
Uploads the build defined as the default output of the workflow through | ||
the `all` rule from Snakefille | ||
""" | ||
|
||
rule deploy_all: | ||
input: *rules.all.input | ||
output: touch("results/deploy_all.done") | ||
params: | ||
deploy_url = config["deploy_url"] | ||
shell: | ||
""" | ||
nextstrain remote upload {params.deploy_url} {input} | ||
""" |