-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (52 loc) · 1.76 KB
/
on_demand_build.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
44
45
46
47
48
49
50
51
52
53
54
55
# On demand builds that can be run via GitHub UI at
# https://github.com/department-of-veterans-affairs/va-mobile-app/actions/workflows/on_demand_build.yml
name: '[Build] On Demand Build'
on:
workflow_dispatch:
inputs:
environment:
description: Environment
required: true
default: staging
type: choice
options:
- staging
- production
notes:
description: Notes
required: true
jobs:
queue_build:
name: Queue Build
uses: ./.github/workflows/queue_builds.yml
secrets: inherit
start_slack_thread:
name: Start Slack thread
needs: queue_build
uses: ./.github/workflows/start_slack_thread.yml
secrets: inherit
with:
channel_name: va-mobile-build-alerts
message: 'On demand build started by ${{ github.actor }}: \"${{ inputs.notes }}\" (:git: `${{ github.ref_name }}`). This process may take a while. See :thread: or <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|workflow run> for results.'
ios:
name: iOS On Demand Build
needs: [queue_build, start_slack_thread]
uses: ./.github/workflows/build_ios.yml
secrets: inherit
with:
lane: on_demand
ref: ${{ github.ref_name }}
environment: ${{ inputs.environment }}
notes: ${{ inputs.notes }}
slack_thread_ts: ${{ needs.start_slack_thread.outputs.thread_ts }}
android:
name: Android On Demand Build
needs: [queue_build, start_slack_thread]
uses: ./.github/workflows/build_android.yml
secrets: inherit
with:
lane: on_demand
ref: ${{ github.ref_name }}
environment: ${{ inputs.environment }}
notes: ${{ inputs.notes }}
slack_thread_ts: ${{ needs.start_slack_thread.outputs.thread_ts }}