Docker pushes fail on tags
effigies opened this issue · comments
Chris Markiewicz commented
#!/bin/bash -eo pipefail
docker tag nipreps/smriprep nipreps/smriprep:${CIRCLE_BRANCH#docker/}
docker push nipreps/smriprep:${CIRCLE_BRANCH#docker/}
Error parsing reference: "nipreps/smriprep:" is not a valid repository/tag: invalid reference format
Exited with code exit status 1
CircleCI received exit code 1
Mathias Goncalves commented
We should probably use the following heuristic:
- check for CIRCLE_TAG
- if none, check if CIRCLE_BRANCH has the
docker/
prefix