Skip to content

Deploy: selected branch #124

Deploy: selected branch

Deploy: selected branch #124

Workflow file for this run

# 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-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 }}`