forked from commaai/openpilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jenkins: publish casync releases from device (commaai#32142)
* publish in ci * overwrite * publish in ci * fix * test it * Revert "test it" This reverts commit b3de51d. * use right token * cleanup after uploading --------- Co-authored-by: Comma Device <[email protected]>
- Loading branch information
Showing
4 changed files
with
30 additions
and
15 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,24 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import argparse | ||
import os | ||
import pathlib | ||
from openpilot.tools.lib.azure_container import AzureContainer | ||
|
||
|
||
if __name__ == "__main__": | ||
del os.environ["AZURE_TOKEN"] # regerenate token for this bucket | ||
|
||
OPENPILOT_RELEASES_CONTAINER = AzureContainer("commadist", "openpilot-releases") | ||
|
||
parser = argparse.ArgumentParser(description='upload casync folder to azure') | ||
parser.add_argument("casync_dir", type=str, help="casync directory") | ||
args = parser.parse_args() | ||
|
||
casync_dir = pathlib.Path(args.casync_dir) | ||
|
||
for f in casync_dir.rglob("*"): | ||
if f.is_file(): | ||
blob_name = f.relative_to(casync_dir) | ||
print(f"uploading {f} to {blob_name}") | ||
OPENPILOT_RELEASES_CONTAINER.upload_file(str(f), str(blob_name), overwrite=True) |
This file was deleted.
Oops, something went wrong.
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