Merge pull request #85 from prydonius/update-stacksmith

ci: push update to stacksmith
This commit is contained in:
Sameer Naik
2016-11-01 09:37:37 +05:30
committed by GitHub

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