| # Commit of parent dir | |
| commitid=$(git -C .. rev-parse HEAD) | |
| # Keep HF Docker build pinned to the exact app commit. | |
| sed -i.bak "s/^ARG APP_COMMIT=.*/ARG APP_COMMIT=${commitid}/" Dockerfile && rm Dockerfile.bak | |
| git add Dockerfile | |
| git commit -m "re-deploying on HF: ${commitid}" | |
| git push | |