Skip to content

Commit

Permalink
fix release script - part2 (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdk27 authored Jun 8, 2020
1 parent ae3ec91 commit a09892b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/upload-resources-to-github
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RELEASE_ID=$(curl -s -H "Authorization: token $GITHUB_TOKEN" \
jq --arg VERSION "$VERSION" '.[] | select(.tag_name==$VERSION) | .id')

for binary in $SCRIPTPATH/../build/bin/*; do
echo "Uploading $binary"
curl \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Content-Type: $(file -b --mime-type $binary)" \
Expand All @@ -22,12 +23,13 @@ for binary in $SCRIPTPATH/../build/bin/*; do
done


## Upload k8s yaml
## Upload k8s resources
resourceFiles=($TAR_RESOURCES_FILE $AGG_RESOURCES_YAML)
for archive in $HELM_ARCHIVES_DIR; do
for archive in $HELM_ARCHIVES_DIR/*; do
resourceFiles+=($archive)
done
for resourceFile in "${resourceFiles[@]}"; do
echo "Uploading $resourceFile"
curl \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Content-Type: $(file -b --mime-type $resourceFile)" \
Expand Down

0 comments on commit a09892b

Please sign in to comment.