Skip to content
Snippets Groups Projects

Gc/gh actions v2 vs v3

Merged gcorradini requested to merge gc/gh_actions_v2_vs_v3 into conus-dps
7 files
+ 188
38
Compare changes
  • Side-by-side
  • Inline
Files
7
+ 35
0
# .github/actions/run-dps-job/action.yml
name: 'Run DPS Job V2'
description: 'Builds and runs a Docker image to kick off DPS jobs'
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: true
maap_image_env:
description: 'ubuntu'
required: true
runs:
using: "composite"
steps:
- shell: bash
run: |
docker run \
--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 \
/opt/conda/envs/vanilla/bin/python maap_runtime/submit-dps-job.py \
${{ inputs.algo_name }} \
${{ inputs.github_ref }} \
${{ inputs.username }} \
${{ inputs.queue }} \
${{ inputs.maap_image_env }}
Loading