Skip to content

Fake data

Fake data #1

Workflow file for this run

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"