kaufman-lab / build_containers

build and deploy kaufman lab singularity containers
GNU Lesser General Public License v2.1
1 stars 2 forks source link

generate repository and tag using grep #42

Closed myoung3 closed 3 years ago

myoung3 commented 3 years ago

currently these workflow variables are specified manually which could lead to accidental mismatches when adding new images:

{repository: "geospatial_plus", tag: "4.1.0", definitionfile: "geospatial_plus4.1.0.def"},

by echoing into $GITHUB environment it should be possible to create an environment variables corresponding to repository and tag which persists between steps. eg..

echo "all_modified_files=$changed" >> $GITHUB_ENV  #https://stackoverflow.com/questions/57968497/how-do-i-set-an-env-var-with-a-bash-expression-in-github-actions

Just need to figure out how to grep these.

Might help to put a separator between image and tag. perhaps "__"

myoung3 commented 3 years ago

closed in #44