mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
update
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
5800509c7f
commit
18dcbce78b
|
@ -36,6 +36,18 @@ main(){
|
|||
|
||||
echo "Uploading files: ${files[@]}"
|
||||
echo "For tag name: ${tag_name} tag id: ${tag_id}"
|
||||
|
||||
for file in ${files[@]}; do
|
||||
filename=$(basename "$file")
|
||||
curl -sSL -H "${AUTH_HEADER}" -H "${API_HEADER}" \
|
||||
--data-binary @"$file" \
|
||||
-H "Content-Type: application/octet-stream" \
|
||||
"${URI}/repos/${GITHUB_REPOSITORY}/releases/${tag_id}/assets?name=${filename}"
|
||||
|
||||
echo "Successfully uploaded: ${file}!"
|
||||
done
|
||||
|
||||
echo "Uploading assets to ${tag_name} complete!"
|
||||
}
|
||||
|
||||
main $@
|
||||
|
|
Loading…
Reference in New Issue
Block a user