projects
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd1d9d0
)
added quick script to get build assets
author
Matthew Owens
<matthew@owens.tech>
Mon, 16 Jan 2023 11:47:12 +0000
(11:47 +0000)
committer
Matthew Owens
<matthew@owens.tech>
Mon, 16 Jan 2023 11:47:12 +0000
(11:47 +0000)
assetget
[new file with mode: 0755]
patch
|
blob
diff --git a/assetget
b/assetget
new file mode 100755
(executable)
index 0000000..
0a24e00
--- /dev/null
+++ b/
assetget
@@ -0,0
+1,8
@@
+#!/bin/bash
+
+PROJECT=$1
+OS=$2
+LATEST=$(aws s3api list-objects --bucket $1-artifacts --prefix "$2" --query "sort_by(Contents, &LastModified)[-1].Key" --output text)
+
+echo "getting to /tmp/..."
+aws s3 cp s3://$1-artifacts/$LATEST /tmp/