Is it possible to set an environment variable in docker-compose.yaml as the output of a command? I thought this was working, however as I’m looking over things in my service and when it’s running I’m getting VERSION=$(git describe)
where what I’m looking to see is something likeVERSION=v1.0.0
For example:
name: myservice
services:
agent:
image: ubuntu
user: root
restart: always
environment:
- VERSION=$(git describe)