-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.1 KB
/
redeploy-dev.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
name: Redeploy Dev
on:
workflow_dispatch:
inputs:
name:
type: choice
description: The service to update
required: true
options:
- ui
- mothership
- cdk
- mock-host
- admin
tag_name:
type: string
description: The tag of the remote image
required: true
permissions: write-all
jobs:
redeploy-dev:
runs-on: ubuntu-22.04
steps:
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: 862323
private-key: ${{ secrets.SERVICE_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
- uses: actions/checkout@v4
with:
ref: dev
token: ${{ steps.generate-token.outputs.token }}
- uses: aws-actions/[email protected]
with:
role-to-assume: arn:aws:iam::499333472133:role/GitHub-CDK-Deploy
aws-region: us-east-1
- run: ./redeploy-dev.sh ${{ github.event.inputs.name }} ${{ github.event.inputs.tag_name }}