Bolivia_NOAA20 nrt v3 #127
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bolivia_NOAA20 nrt v3 | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "25 15,23 * * *" | |
jobs: | |
run_dps_job_v3: | |
if: true #contains('["ranchodeluxe", "mccabete"]', github.actor) | |
runs-on: ubuntu-latest | |
environment: production | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v2 | |
- 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: eis-feds-dask-coordinator-v3 | |
github_ref: 1.2.5 | |
username: mccabete | |
queue: maap-dps-eis-worker-128gb | |
maap_image_env: ubuntu | |
maap_pgt_secret: ${{ secrets.MAAP_PGT }} | |
json_params: '{"regnm": "Bolivia_NOAA20", "bbox": "[-54,-21.5,-64.5,-12.2]", "tst": "[2024,9,27,\"AM\"]", "ted": "[]", "operation": "--coordinate-all"}' | |
- name: send alert on Slack if failure | |
if: always() | |
uses: ravsamhq/[email protected] | |
with: | |
status: ${{ job.status }} | |
notify_when: "failure" | |
notification_title: "GH Action Failed - <${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}|View Failed Run>" | |
footer: "<${{github.server_url}}/${{github.repository}}/issues/|Open GitHub Issues>" | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK_WEBHOOK_URL }} |