-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (31 loc) · 1.02 KB
/
fake-data.yaml
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
name: Fake data
on:
workflow_dispatch:
inputs:
environment:
description: GitHub environment to regenerate example data
type: choice
default: test
options:
- development
- test
jobs:
regenerate:
name: Regenerate
runs-on: ubuntu-latest
environment: ${{ github.event.inputs.environment }}
steps:
- uses: actions/checkout@v4
- uses: Azure/login@v2
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- uses: ./.github/actions/set-kubernetes-credentials
with:
environment: ${{ github.event.inputs.environment }}
azure-credentials: ${{ secrets.AZURE_CREDENTIALS }}
- name: Seed database and regenerate example data
run: |
kubectl exec \
-n tra-${{ github.event.inputs.environment }} \
deployment/apply-for-qts-${{ github.event.inputs.environment }}-web \
-- sh -c "cd /app && /usr/local/bin/bundle exec rails db:seed fake_data:regenerate"