Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mbta/workflows
Shared workflows for MBTA
https://github.com/mbta/workflows
Last synced: about 1 month ago
JSON representation
Shared workflows for MBTA
- Host: GitHub
- URL: https://github.com/mbta/workflows
- Owner: mbta
- License: mit
- Created: 2022-05-25T15:09:17.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-02T18:42:54.000Z (8 months ago)
- Last Synced: 2024-05-03T17:22:09.341Z (8 months ago)
- Size: 76.2 KB
- Stars: 0
- Watchers: 13
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Reusable workflows
This repository collects our [reusable workflows](https://docs.github.com/en/actions/using-workflows/reusing-workflows).
## deploy-ecs.yml
Example usage, in **my_app/.github/workflows/deploy-ecs.yml**:
```yml
name: Deploy to ECSon:
workflow_dispatch:
inputs:
environment:
type: environment
required: true
default: dev
push:
branches: masterjobs:
call-workflow:
uses: mbta/workflows/.github/workflows/deploy-ecs.yml@v2
with:
app-name: my-app
environment: ${{ github.event.inputs.environment || 'dev' }}
secrets:
aws-role-arn: ${{ secrets.AWS_ROLE_ARN }}
docker-repo: ${{ secrets.DOCKER_REPO }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
```## deploy-on-prem.yml
Example usage, in **myapp/.github/workflows/dev.yml**
``` yml
name: Deploy to Dev (on-prem)
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@v2
id: build-push
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
docker-repo: ${{ secrets.DOCKER_REPO }}
Deploy:
needs: Build
uses: mbta/workflows/.github/workflows/deploy-on-prem.yml@v2
with:
app-name: my-app
environment: dev
on-prem-cluster: hsctd-dev-managers
splunk-index: my-app-dev
task-cpu: 0.25
task-memory: 256M
task-port: 8081
secrets:
aws-role-arn: ${{ secrets.AWS_ROLE_ARN }}
docker-repo: ${{ secrets.DOCKER_REPO }}
splunk-host: ${{ secrets.SPLUNK_HOST }}
splunk-token-arn: ${{ secrets.SPLUNK_TOKEN_ARN }}
```