Skip to content
Snippets Groups Projects
Commit 9f3730c1 authored by gcorradini's avatar gcorradini
Browse files

Merge branch 'gc/revise_gh_action_final' into 'conus-dps'

modifed action

See merge request !84
parents eda596cd 4dc7f708
No related branches found
No related tags found
1 merge request!84modifed action
Pipeline #13507 passed with stage
in 6 seconds
name: data update checker
on:
workflow_dispatch:
schedule:
- cron: '0 */4 * * *'
workflow_dispatch:
jobs:
data_update_checker:
if: contains('["ranchodeluxe"]', github.actor)
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout repository
- name: checkout repository
uses: actions/checkout@v2
with:
ref: gc/github_actions
ref: primarykeyv2
- name: pip install fireatlas
run: |
pip install -e '.[test]'
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 job
- name: kick off the DPS job
run: |
docker run \
--env MAAP_PGT=${MAAP_PGT} \
--env MAAP_PGT=${{ secrets.MAAP_PGT }} \
--env MAAP_CONF=/maap-py \
--pull=always -u ${UID}:${DOCKER_GID} -v ${PWD}:${PWD} -w ${PWD} \
--rm mas.maap-project.org/root/maap-workspaces/base_images/vanilla:v3.1.4 \
......@@ -33,3 +47,5 @@ jobs:
maap-dps-eis-worker-64gb \
ubuntu \
--params '{"regnm": "", "bbox": "[]", "tst": "[]", "ted": "[]", "operation": "--data-update"}'
name: data update checker
on:
schedule:
- cron: '0 */4 * * *'
workflow_dispatch:
jobs:
data_update_checker:
if: contains('["ranchodeluxe"]', github.actor)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: gc/github_actions
- name: pip install fireatlas
run: |
pip install -e '.[test]'
- name: kick off the job
run: |
docker run \
--env MAAP_PGT=${MAAP_PGT} \
--env MAAP_CONF=/maap-py \
--pull=always -u ${UID}:${DOCKER_GID} -v ${PWD}:${PWD} -w ${PWD} \
--rm mas.maap-project.org/root/maap-workspaces/base_images/vanilla:v3.1.4 \
/opt/conda/envs/vanilla/bin/python maap_runtime/submit-dps-job.py \
eis-feds-dask-coordinator-v3 \
1.0.0 \
gcorradini \
maap-dps-eis-worker-64gb \
ubuntu \
--params '{"regnm": "", "bbox": "[]", "tst": "[]", "ted": "[]", "operation": "--data-update"}'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment