-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (37 loc) · 1.16 KB
/
deployment-helios.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
36
37
38
39
40
41
42
43
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 }}"