Last active
August 23, 2022 17:15
-
-
Save TheJotob/0a59917f0b72a42d9f6cd6515ecf477d to your computer and use it in GitHub Desktop.
Deploy multiple apps to Heroku from one Repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stages: | |
- deploy | |
deploy:frontend: | |
script: | |
- git remote add heroku-frontend https://heroku:[email protected]/frontend-app.git | |
- git push --force heroku-frontend `git subtree split --prefix frontend-folder HEAD`:master | |
only: | |
- master | |
stage: deploy | |
deploy:api: | |
script: | |
- git remote add heroku-api https://heroku:[email protected]/backend-app.git | |
- git push --force heroku-api `git subtree split --prefix backend-folder HEAD`:master | |
only: | |
- master | |
stage: deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment