d1b1
1/28/2016 - 3:50 PM

Codeship Deploy Script for Commit + Date

Add the following to a Codeship.io Deployment (Custom) Script. This will update heroku configs with the late CI Run Date and Commit. 

export CI_RUN_AT=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
heroku config:add --app api-thebasicsapp-com LAST_DEPLOYMENT_COMMIT=$CI_COMMIT_ID
heroku config:add --app api-thebasicsapp-com LAST_DEPLOYMENT_COMMIT_DATE=$CI_RUN_AT