[misc] bring back old schema of revision.txt

- store in /var/www/revision.txt
- prefix each line with the services directory
This commit is contained in:
Jakob Ackermann 2021-07-16 15:31:53 +01:00
parent 470d539c82
commit 34a1a8bfc9
No known key found for this signature in database
GPG key ID: 30C56800FCA3828A
2 changed files with 2 additions and 1 deletions

View file

@ -18,7 +18,7 @@ RUN node genScript checkout | bash \
\
# Store the revision for each service
# ---------------------------------------------
&& node genScript revisions | bash > revisions.txt \
&& node genScript revisions | bash > /var/www/revisions.txt \
\
# Cleanup the git history
# -------------------

View file

@ -12,6 +12,7 @@ switch (process.argv.pop()) {
break
case 'revisions':
for (const service of services) {
console.log(`echo -n /var/www/sharelatex/${service.name},`)
console.log(`git -C ${service.name} rev-parse HEAD`)
}
break