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

Commit

Permalink
Fix deployment of backdated versions of OneFuzz (#347)
Browse files Browse the repository at this point in the history
When running automated deployments, 'tools' were not being properly replaced with the updated versions if the deployment was created _prior_ to the original instance deployment.
  • Loading branch information
nharper285 authored Dec 1, 2020
1 parent 37e3251 commit 5092f96
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/deployment/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,17 @@ def upload_tools(self) -> None:
)
url = "%s/%s?%s" % (account_url, "tools", sas)

subprocess.check_output(
[
self.azcopy,
"copy",
os.path.join(self.tools, "*"),
url,
"--overwrite=true",
"--recursive=true",
]
)

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

subprocess.check_output(
[
self.azcopy,
"copy",
os.path.join(self.instance_specific, "*"),
url,
"--overwrite=true",
"--recursive=true",
]
)

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

subprocess.check_output(
[
self.azcopy,
"copy",
os.path.join(path, "*"),
url,
"--overwrite=true",
"--recursive=true",
]
)

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

0 comments on commit 5092f96

Please sign in to comment.