Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #23 from digitalrebar/push-it
Browse files Browse the repository at this point in the history
Publish alwatys
  • Loading branch information
galthaus authored Sep 20, 2017
2 parents e824514 + f114b58 commit d2d868b
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions tools/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,12 @@ go get -u github.com/stevenroose/remarshal
. tools/version.sh
version="$Prepart$MajorV.$MinorV.$PatchV$Extra-$GITHASH"

version_re='tip'
if [[ $version =~ $version_re ]] ; then
TOKEN=R0cketSk8ts
for i in drp-community-content ; do
echo "Publishing $i to cloud"
CONTENT=$i
remarshal -i $CONTENT.yaml -o $CONTENT.json -if yaml -of json
curl -X PUT -T $CONTENT.json https://qww9e4paf1.execute-api.us-west-2.amazonaws.com/main/support/content/$CONTENT?token=$TOKEN
echo
done
fi
TOKEN=R0cketSk8ts
for i in drp-community-content ; do
echo "Publishing $i to cloud"
CONTENT=$i
remarshal -i $CONTENT.yaml -o $CONTENT.json -if yaml -of json
curl -X PUT -T $CONTENT.json https://qww9e4paf1.execute-api.us-west-2.amazonaws.com/main/support/content/$CONTENT?token=$TOKEN
echo
done

0 comments on commit d2d868b

Please sign in to comment.