Skip to content

Commit

Permalink
debug(locksmith): adding log messages when releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
julien51 committed Dec 11, 2024
1 parent 55d8577 commit 5798728
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/heroku.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,24 @@ if ! command -v heroku &>/dev/null; then
curl https://cli-assets.heroku.com/install.sh | sh
fi

echo "> docker login on Heroku"

docker login -username=$HEROKU_EMAIL --password=$HEROKU_API_KEY registry.heroku.com

# build release image
echo "> docker building release image"
docker build --rm=false --progress=plain -t $SERVICE/release --build-arg COMMAND="yarn release" .
docker tag $SERVICE/release registry.heroku.com/$HEROKU_APP_NAME/release
docker push registry.heroku.com/$HEROKU_APP_NAME/release

# build web image
echo "> docker building web image"
docker build --rm=false --progress=plain -t $SERVICE/web --build-arg COMMAND="yarn start" .
docker tag $SERVICE/web registry.heroku.com/$HEROKU_APP_NAME/web
docker push registry.heroku.com/$HEROKU_APP_NAME/web

# build worker image
echo "> docker building worker image"
docker build --rm=false --progress=plain -t $SERVICE/worker --build-arg COMMAND="yarn worker:start" .
docker tag $SERVICE/worker registry.heroku.com/$HEROKU_APP_NAME/worker
docker push registry.heroku.com/$HEROKU_APP_NAME/worker
Expand All @@ -33,5 +38,6 @@ docker push registry.heroku.com/$HEROKU_APP_NAME/worker
heroku container:login

# Release all processes
echo "> heroku releasing web, worker, and release images"
heroku container:release -a $HEROKU_APP_NAME web worker release

0 comments on commit 5798728

Please sign in to comment.