Skip to content

Instantly share code, notes, and snippets.

@jlandfried
Created February 6, 2023 19:48
Show Gist options
  • Save jlandfried/0a4ce89129741f5c5cc6e3e7789dc77d to your computer and use it in GitHub Desktop.
Save jlandfried/0a4ce89129741f5c5cc6e3e7789dc77d to your computer and use it in GitHub Desktop.
Terminus safe deploy
name: Pantheon Deploy
run-name: Deploy to ${{ inputs.environment_name }} (@${{ github.actor }})
on:
workflow_dispatch:
inputs:
environment_name:
type: choice
description: Which Pantheon environment to deploy to
options:
- test
- live
deploy_message:
type: string
deploy_force:
type: boolean
default: false
description: Force deployment even if there is overridden configuration on the target environment
post_import_config:
type: boolean
default: true
description: Import configuration after deployment
post_db_update:
type: boolean
default: true
description: Run DB updates after deployment
clear_env_cache:
type: boolean
default: true
description: Clear target environment cache
slack_alert:
type: boolean
default: true
description: Alert Slack
jobs:
deploy:
uses: lastcallmedia/github-actions/.github/workflows/terminus-safe-deploy.yml@main
secrets:
TERMINUS_DOWNSTREAM_SSH_KEY: ${{ secrets.PANTHEON_PRIVATE_SSH_KEY }}
TERMINUS_MACHINE_TOKEN: ${{ secrets.TERMINUS_MACHINE_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment