61 lines
1.8 KiB
YAML
61 lines
1.8 KiB
YAML
name: LNM VEX Backfill
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
mongo_uri:
|
|
description: 'Staging Mongo URI'
|
|
required: true
|
|
type: string
|
|
nats_url:
|
|
description: 'NATS URL'
|
|
required: true
|
|
type: string
|
|
redis_url:
|
|
description: 'Redis URL'
|
|
required: true
|
|
type: string
|
|
dry_run:
|
|
description: 'Dry run (no writes)'
|
|
required: false
|
|
default: true
|
|
type: boolean
|
|
|
|
jobs:
|
|
vex-backfill:
|
|
runs-on: ubuntu-22.04
|
|
env:
|
|
DOTNET_VERSION: '10.0.100-rc.1.25451.107'
|
|
ARTIFACT_DIR: ${{ github.workspace }}/.artifacts
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up .NET SDK
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: ${{ env.DOTNET_VERSION }}
|
|
include-prerelease: true
|
|
|
|
- name: Restore
|
|
run: dotnet restore src/Concelier/StellaOps.Concelier.Backfill/StellaOps.Concelier.Backfill.csproj
|
|
|
|
- name: Run VEX backfill
|
|
env:
|
|
STAGING_MONGO_URI: ${{ inputs.mongo_uri }}
|
|
NATS_URL: ${{ inputs.nats_url }}
|
|
REDIS_URL: ${{ inputs.redis_url }}
|
|
run: |
|
|
mkdir -p $ARTIFACT_DIR
|
|
EXTRA=()
|
|
if [ "${{ inputs.dry_run }}" = "true" ]; then EXTRA+=("--dry-run"); fi
|
|
dotnet run --project src/Concelier/StellaOps.Concelier.Backfill/StellaOps.Concelier.Backfill.csproj -- --mode=vex --batch-size=500 --max-conflicts=0 --mongo "$STAGING_MONGO_URI" --nats "$NATS_URL" --redis "$REDIS_URL" "${EXTRA[@]}" | tee $ARTIFACT_DIR/vex-backfill.log
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: lnm-vex-backfill-artifacts
|
|
path: ${{ env.ARTIFACT_DIR }}
|