-
Notifications
You must be signed in to change notification settings - Fork 11
35 lines (32 loc) · 1.05 KB
/
deploy-manual.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Deploys chosen branch to chosen environment
name: "Deploy: selected branch"
on:
# Manually select an env to deploy to
workflow_dispatch:
inputs:
env:
description: "Environment"
type: environment # will be prod, dev, dev-blue, or dev-green
required: true
default: dev-blue
jobs:
branch:
uses: ./.github/workflows/use-deploy-ecs.yml
with:
deployment-env: ${{ github.event.inputs.env }}
secrets:
aws-account-id: ${{ secrets.TID_AWS_ACCOUNT_ID }}
aws-role-arn: ${{ secrets.AWS_ROLE_ARN }}
docker-repo: ${{ secrets.DOCKER_REPO }}
notify:
needs: [branch]
uses: ./.github/workflows/use-notify-slack.yml
if: ${{ !cancelled() }}
secrets:
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
with:
job-status: ${{ needs.branch.result }}
success-message: |
`${{ github.ref_name }}` branch manually deployed to `${{ github.event.inputs.env }}`
failure-message: |
`${{ github.ref_name }}` branch not deployed to `${{ github.event.inputs.env }}`