-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor build and deploy workflow, add Heroku deployment
- Refactored the "setup-build-publish-deploy" job in the build-and-deploy-to-gcr.yaml file to "setup-build-publish" - Updated the name of the job to "Build & publish image to GCR" - Removed unnecessary steps related to Kubernetes deployment - Added a new workflow file deploy-to-heroku.yml for deploying to Heroku - Created a matrix strategy for deploying to multiple Heroku apps - Added steps for checking out code and deploying to Heroku in the deploy job of deploy-to-heroku.yml - Updated .gitignore file by adding ".DS_Store" - Deleted unneeded files: unistudents-cb.yml, unistudents-prod1.yml, unistudents-prod2.yml, unistudents-prod3.yml, deployment.yml, kustomization.yaml
- Loading branch information
1 parent
03fae5b
commit 4e1c39b
Showing
10 changed files
with
27 additions
and
198 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Deploy to Heroku | ||
|
||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
app_name: ['unistudents-prod-1', 'unistudents-prod-4', 'unistudents-prod-5', 'unistudents-prod-6'] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Deploy to Heroku | ||
uses: akhileshns/[email protected] # This is the Heroku deployment action | ||
with: | ||
heroku_api_key: ${{ secrets.HEROKU_API_KEY }} | ||
heroku_app_name: ${{ matrix.app_name }} | ||
heroku_email: ${{ secrets.HEROKU_EMAIL }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,4 +30,5 @@ build/ | |
### VS Code ### | ||
.vscode/ | ||
|
||
logback-test.xml | ||
logback-test.xml | ||
.DS_Store |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.