Skip to content

Commit 914ee94

Browse files
committed
updates
1 parent 779088c commit 914ee94

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

release.sh

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
IMAGE_ID=$(docker inspect ${HEROKU_REGISTRY_IMAGE} --format={{.Id}})
6+
PAYLOAD='{"updates": [{"type": "web", "docker_image": "'"$IMAGE_ID"'"}]}'
7+
8+
curl -n -X PATCH https://api.heroku.com/apps/$HEROKU_APP_NAME/formation \
9+
-d "${PAYLOAD}" \
10+
-H "Content-Type: application/json" \
11+
-H "Accept: application/vnd.heroku+json; version=3.docker-releases" \
12+
-H "Authorization: Bearer ${HEROKU_AUTH_TOKEN}"

0 commit comments

Comments
 (0)