Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Fix deployment of backdated versions of OneFuzz #347

Merged
12 commits merged into from
Dec 1, 2020
Merged
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/deployment/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,10 @@ def upload_tools(self) -> None:
)
url = "%s/%s?%s" % (account_url, "tools", sas)

subprocess.check_output(
[self.azcopy, "copy", self.tools, url, "--overwrite", "true"]
bmc-msft marked this conversation as resolved.
Show resolved Hide resolved
)

subprocess.check_output(
[self.azcopy, "sync", self.tools, url, "--delete-destination", "true"]
)
Expand Down Expand Up @@ -603,6 +607,17 @@ def upload_instance_setup(self) -> None:
)
url = "%s/%s?%s" % (account_url, "instance-specific-setup", sas)

subprocess.check_output(
[
self.azcopy,
"copy",
self.instance_specific,
bmc-msft marked this conversation as resolved.
Show resolved Hide resolved
url,
"--overwrite",
bmc-msft marked this conversation as resolved.
Show resolved Hide resolved
"true",
bmc-msft marked this conversation as resolved.
Show resolved Hide resolved
]
)

subprocess.check_output(
[
self.azcopy,
Expand Down Expand Up @@ -642,6 +657,10 @@ def upload_third_party(self) -> None:
)
url = "%s/%s?%s" % (account_url, name, sas)

subprocess.check_output(
[self.azcopy, "copy", path, url, "--overwrite", "true"]
bmc-msft marked this conversation as resolved.
Show resolved Hide resolved
)

subprocess.check_output(
[self.azcopy, "sync", path, url, "--delete-destination", "true"]
)
Expand Down