-
Notifications
You must be signed in to change notification settings - Fork 18
44 lines (41 loc) · 1.11 KB
/
mainnet-db-migration-auto.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
name: DB Migration - Mainnet (Auto)
on:
pull_request:
branches:
- production
types:
- closed
permissions:
id-token: write
contents: read
jobs:
db-migration:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
environment: mainnet
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 all \
--environment mainnet \
--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 }}