ci: push update to stacksmith

This commit is contained in:
Adnan Abdulhussein 2016-10-31 11:23:11 -07:00
parent a479cd0e30
commit f04b9402dd
1 changed files with 4 additions and 0 deletions

View File

@ -47,3 +47,7 @@ deployment:
gcloud docker -- push gcr.io/$GCLOUD_PROJECT/$IMAGE_NAME:$CIRCLE_TAG
gcloud docker -- push gcr.io/$GCLOUD_PROJECT/$IMAGE_NAME:latest
fi
- >
if [ -n "$STACKSMITH_API_KEY" ]; then
curl "https://stacksmith.bitnami.com/api/v1/components/$IMAGE_NAME/versions?api_key=$STACKSMITH_API_KEY" -H 'Content-Type: application/json' --data '{"version": "'"${CIRCLE_TAG%-r*}"'", "revision": "'"${CIRCLE_TAG#*-r}"'", "published": true}'
fi