-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (38 loc) · 1.05 KB
/
ad_hoc_deploy_run.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
name: Ad-Hoc Deploy & Run
on:
workflow_dispatch:
inputs:
environment:
description: Environment
type: choice
options:
- dev
- staging
- prod
secrets:
AWS_ROLE_ARN:
description: AWS_ROLE_ARN
required: true
jobs:
# deploy:
# uses: ./.github/workflows/deploy-base.yaml
# with:
# # pass the inputs from the workflow dispatch through to the deploy base. the booleans are
# # converted to strings, so flip them back using fromJson function
# environment: ${{ github.event.inputs.environment }}
# deploy-ad-hoc: true
# secrets: inherit
run_ad_hoc_task:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout Branch
uses: actions/checkout@v3
- name: Run Ad-Hoc Task
uses: ./.github/actions/run_task
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
environment: ${{ github.event.inputs.environment }}
task_name: 'ad-hoc'