Skip to content

Commit

Permalink
Refactored heroku deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtisassad committed Sep 26, 2024
1 parent 0d56ebd commit c285998
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/deploy-to-heroku.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,18 @@ cp ${env_path} .env

docker build . --target commonwealth -f Dockerfile.commonwealth_base -t commonwealth_base

commonwealth_path=./packages/commonwealth/deploy/dockerfiles

process_types=""
for dockerfile in ${commonwealth_path}/Dockerfile.*; do
base_name=$(basename $dockerfile | cut -d. -f2)

heroku_tag=registry.heroku.com/${app_name}/${base_name}

echo ${dockerfile}
echo ${image_name}:latest
echo ${heroku_tag}:latest

docker build -f ${dockerfile} -t ${image_name}:latest .
docker build -f ${dockerfile} -t ${heroku_tag}:latest .

echo docker image ls

Expand Down

0 comments on commit c285998

Please sign in to comment.