-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workflows for deploying to on prem servers (#533)
* Add deploy workflows, remove splunk logger backend from prod config * Add formatting for console logs * Change console log level for prod to info. Add usage of :code.priv_dir/1 for stops.json * add back call to Jason.decode * update cpu and memory values
- Loading branch information
Showing
6 changed files
with
85 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Deploy to Dev | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
Build: | ||
runs-on: windows-2019 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- uses: mbta/actions/build-push-ecr@v1 | ||
id: build-push | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
docker-repo: ${{ secrets.DOCKER_REPO }} | ||
deploy: | ||
name: Deploy | ||
needs: build | ||
uses: mbta/workflows/.github/workflows/deploy-on-prem.yml@main | ||
with: | ||
app-name: realtime-signs | ||
environment: dev | ||
on-prem-cluster: hsctd-dev-managers | ||
splunk-index: realtime-signs-dev | ||
task-cpu: .5 | ||
task-memory: 1024M | ||
task-port: 80 | ||
secrets: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
docker-repo: ${{ secrets.DOCKER_REPO }} | ||
slack-webhook: ${{ secrets.SLACK_WEBHOOK }} |
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 Prod | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
uses: mbta/workflows/.github/workflows/deploy-on-prem.yml@main | ||
with: | ||
app-name: realtime-signs | ||
environment: prod | ||
on-prem-cluster: hsctd-prod-managers | ||
splunk-index: realtime-signs-prod | ||
task-cpu: .5 | ||
task-memory: 1024M | ||
task-port: 80 | ||
secrets: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
docker-repo: ${{ secrets.DOCKER_REPO }} | ||
slack-webhook: ${{ secrets.SLACK_WEBHOOK }} |
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
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