diff --git a/src/main/groovy/com/devsoap/fn/tasks/FnPrepareDockerTask.groovy b/src/main/groovy/com/devsoap/fn/tasks/FnPrepareDockerTask.groovy index c087100..a3849f5 100644 --- a/src/main/groovy/com/devsoap/fn/tasks/FnPrepareDockerTask.groovy +++ b/src/main/groovy/com/devsoap/fn/tasks/FnPrepareDockerTask.groovy @@ -160,7 +160,8 @@ class FnPrepareDockerTask extends DefaultTask { .templateFileName(yaml.name) .substitutions([ 'applicationName' : project.name.toLowerCase(), - 'version' : project.version == Project.DEFAULT_VERSION ? 'latest' : project.version, + 'version' : (project.version == Project.DEFAULT_VERSION ? '' : project.version) + + new Date().format('yyyyMMddssmm'), 'triggerName' : getTriggerName(), 'triggerPath' : getTriggerPath(), 'triggerType' : getTriggerType(),