Deployment to dynamically generated target directory name

How can I specify the target directory name by date/git hash? I am using Rsync for deployment.

Here is an example illustrating what I want to do:

deploy:
        rsync:
                user: builder
                host: 192.168.111,111
                port: 22
                source: android-k/out/target/product/my-product
                target: /home/public/releases/`date +%F`-`git rev-parse HEAD --short`

For now, I set up the output directory name by the build script, and putting it inside a fixed location.

If you are using drone 0.4 you can do this:

deploy:
        rsync:
                user: builder
                host: 192.168.111,111
                port: 22
                source: android-k/out/target/product/my-product
                target: /home/public/releases/$$COMMIT

source http://readme.drone.io/usage/variables/#string-interpolation:2b8b8ac4006be88c769f5e3fd99b009a