-
Notifications
You must be signed in to change notification settings - Fork 18
52 lines (48 loc) · 1.35 KB
/
mainnet-db-migration-manual.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
name: DB Migration - Mainnet (Manual)
on:
workflow_dispatch:
inputs:
environment:
type: choice
description: 'Environment'
options:
- 'mainnet'
network:
type: choice
description: 'Network'
options:
- 'arbitrum'
- 'all'
permissions:
id-token: write
contents: read
jobs:
db-migration:
runs-on: ubuntu-latest
environment: ${{ github.event.inputs.environment }}
steps:
- uses: actions/checkout@v3
with:
lfs: true
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1-node16
with:
aws-region: ap-southeast-2
role-to-assume: ${{ secrets.FLU_AWS_GITHUB_OIDC_ROLE }}
role-duration-seconds: 7200 #seconds
- name: DB Migration
uses: ./scripts/actions
with:
command: |
flu migrate-db \
--network ${{ github.event.inputs.network }} \
--environment ${{ github.event.inputs.environment }} \
--tag $GITHUB_SHA
- name: Discord
uses: ./scripts/actions
if: always()
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
with:
command: |
flu send-discord --webhook-url ${{ secrets.FLU_CI_DISCORD_WEBHOOK_URL }} --status ${{ job.status }}