I have a package.json that contains this script:
"scripts": {
"docker-build": "docker build -t url.com/repository:$(git rev-parse --short HEAD) ."
}
I use this to create automatic tags from Git on mye Docker-images. This works on Mac, but not on a Windows-machine running Docker Quickstart Terminal.
Is it possible to run the $(git rev-parse --short HEAD)
command from NPM-script on Windows?