I want to create env variable inside Dockerfile.app which will be used by Sentry to version my build
This is what I have inside that file:
ENV REACT_APP_RELEASE_VERSION=$(git rev-parse --short HEAD)-$(date -u '+%Y-%m-%dT%H:%M:%SZ')
Its working fine in bash:
REACT_APP_RELEASE_VERSION=2a06954-2020-07-01T07:41:49Z
but while pipeline building my project, it throws error:
Error response from daemon: failed to parse Dockerfile.app: Syntax error - can't find = in "rev-parse". Must be of the form: name=value
Any ideas?