updating deploy to include GIT_COMMIT as env var
All checks were successful
ci/woodpecker/push/test-and-deploy Pipeline was successful

This commit is contained in:
Collin Duncan 2025-04-29 10:46:23 +02:00
parent 543a8c4ada
commit ed05a330f6
No known key found for this signature in database

View file

@ -14,7 +14,7 @@ module.exports = {
repo: 'https://fred.collinduncan.com/collin/autobaan.git', repo: 'https://fred.collinduncan.com/collin/autobaan.git',
path: '/root/autobaan', path: '/root/autobaan',
'post-deploy': 'post-deploy':
'npm install && pm2 startOrRestart ecosystem.config.js --name autobaan', 'npm install && GIT_COMMIT=$(git show -s --format=%h) pm2 startOrRestart ecosystem.config.js --name autobaan --update-env',
}, },
}, },
} }