diff --git a/.gitignore b/.gitignore
index 77afe8ad65abb8633395fd3fec7b6ee46b76a342..8f340483792da6e807a3781f17664b0dee0cfbcf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+latest_version
 ignore/
 deploy/
 git/
diff --git a/RootStock-NG.sh b/RootStock-NG.sh
index ee0108bff7720e7bd62e24912ae49f650d0da54d..1ac0a14485a0928601b74fbbbb17ad67274df732 100755
--- a/RootStock-NG.sh
+++ b/RootStock-NG.sh
@@ -109,6 +109,9 @@ check_project_config () {
 		. ${DIR}/configs/${project_config}.conf
 		export_filename="${deb_distribution}-${release}-${image_type}-${deb_arch}-${time}"
 
+		# for automation
+		echo "${export_filename}" > ${DIR}/latest_version
+
 		echo "tempdir=\"${tempdir}\"" > ${DIR}/.project
 		echo "time=\"${time}\"" >> ${DIR}/.project
 		echo "export_filename=\"${export_filename}\"" >> ${DIR}/.project