Deploy to Test-Server with Helios #33
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
name: Deploy to Test-Server with Helios | |
on: | |
workflow_dispatch: | |
inputs: | |
branch_name: | |
description: "Which branch to deploy" | |
required: true | |
type: string | |
environment_name: | |
description: "Which environment to deploy (environment defined in GitHub)" | |
required: true | |
type: string | |
triggered_by: | |
description: "Username that triggered deployment (not required, shown if triggered via GitHub UI, logged if triggered via GitHub app)" | |
required: false | |
type: string | |
concurrency: ${{ github.event.inputs.environment_name }} | |
env: | |
CI: true | |
jobs: | |
log-inputs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Log Inputs | |
run: | | |
echo "Branch: ${{ github.event.inputs.branch_name }}" | |
echo "Environment: ${{ github.event.inputs.environment_name }}" | |
echo "Triggered by?: ${{ github.event.inputs.triggered_by }}" | |
deploy: | |
needs: [ log-inputs ] | |
runs-on: ubuntu-latest | |
environment: | |
name: ${{ github.event.inputs.environment_name }} | |
steps: | |
- name: Echo | |
run: | | |
echo "Deploying to ${{ github.event.inputs.environment_name }}" |