Skip to content
Snippets Groups Projects

make a manual flow

Merged gcorradini requested to merge gc/manual_kickoff into conus-dps
1 file
+ 66
0
Compare changes
  • Side-by-side
  • Inline
+ 66
0
name: manual nrt v3
on:
workflow_dispatch:
inputs:
algo_name:
description: 'Algorithm name'
required: true
github_ref:
description: 'Branch name or tag'
required: true
username:
description: 'Username'
required: true
queue:
description: 'Queue'
required: false
default: 'maap-dps-eis-worker-64gb'
maap_image_env:
description: 'MAAP image environment'
required: false
default: 'ubuntu'
json_params:
description: 'JSON encoded params to pass to the job e.g.: \'{"regnm": "NewMexicoV3", "bbox": "[-125,31,-101,49]", "tst": "[]", "ted": "[]", "operation": "--coordinate-all"}\''
required: true
jobs:
run_dps_job_v3:
if: contains('["ranchodeluxe", "mccabete"]', github.actor)
runs-on: ubuntu-latest
environment: production
steps:
- name: checkout repository
uses: actions/checkout@v2
with:
ref: primarykeyv2
- name: pip install fireatlas
run: |
pip install .
- name: get docker GID and set DOCKER_GID environment variable
run: |
echo "DOCKER_GID=$(getent group docker | cut -d: -f3)" >> $GITHUB_ENV
- name: get current user UID and set UID environment variable
run: |
echo "UID=$(id -u)" >> $GITHUB_ENV
- name: print DOCKER_GID and UID
run: |
echo "Docker GID: $DOCKER_GID"
echo "User UID: $UID"
- name: kick off the DPS job
uses: Earth-Information-System/fireatlas/.github/actions/run-dps-job-v3@conus-dps
with:
algo_name: ${{ inputs.algo_name }}
github_ref: ${{ inputs.github_ref }}
username: ${{ inputs.username }}
queue: ${{ inputs.queue }}
maap_image_env: ${{ inputs.maap_image_env }}
maap_pgt_secret: ${{ secrets.MAAP_PGT }}
json_params: ${{ inputs.json_params }}
Loading