iDigBio / docker-library

A collection of Dockerfiles
GNU General Public License v3.0
0 stars 0 forks source link

is it possible to set idigbio/docker-library globally #3

Open danstoner opened 4 years ago

danstoner commented 4 years ago

To enforce the first part of the naming convention:

digbio/docker-library

Can we set a global var or use a TRAVIS_* variable?

$SOME_VAR=idigbio/docker-library

So then when it is time to add a new Dockerfile, it is pretty clear which parts needs to be modified.

DOCKER_IMAGE_NAME=$SOME_VAR.base-idb-backend-python3

danstoner commented 4 years ago

It definitely isn't possible to set one ENV and then use that in the next ENV, at least in a single job context.

This does not work:

    env:
      - DOCKERFILE_DIR=base-idb-backend
      - DOCKER_IMAGE_NAME=idigbio/docker-library.$DOCKERFILE_DIR

Maybe the global section variables would be available inside a job.