Hi,
So I have been trying to tackle this problem for an entire month now but nothing I've tried works. I need to build an R package on merges to master and then deploy said package to the
This was to test that the deployment works as expected as it is my first time using the feature for our codebase. Up to that point, everything has been fine and Last Deployment Information shows the correct info. Since then I have updated the codebase as well as the YAML file and this is what I currently have:
I have been pushing code almost daily but the Last Deployment Information always shows Feb 11 with that old commit. Whenever I click on Deploy HEAD commit, I get the following message:
Is there a fix for this? Am I missing something?
edit: cpanel and whm version is 11.108.0.14, sorry I didn't realize I pasted the wrong thing
So I have been trying to tackle this problem for an entire month now but nothing I've tried works. I need to build an R package on merges to master and then deploy said package to the
renv
cellar for use in other projects. I have R 4.2.2 installed and both R CMD
and Rscript
added to path. I've had a .cpanel.yml
file that has been working up to Feb 11th that looks like the one below:
Code:
---
deployment:
tasks:
- export PROJROOT=/home/user/projectdir
- Rscript -e "renv::restore()"
Code:
---
deployment:
tasks:
- export RENV_CELLAR=$(Rscript -e "cat(Sys.getenv(\"RENV_PATHS_CELLAR\"))")
- export XXX_PKG="XXX"
- export XXX_VERSION="0.0.0.9000"
- export LOG_PATH=${HOME}"/R/logs/"
- export LOG_FILE=${XXX_PKG}"_Rcheck_"$(date "+%Y.%m.%d-%H.%M.%S")
- Rscript -e "renv::restore()"
- R CMD build .
- R CMD check ${XXX_PKG}"_"${XXX_VERSION}".tar.gz" --no-manual -o ${LOG_PATH}
- /bin/mv ${LOG_PATH}${XXX_PKG}".Rcheck" ${LOG_PATH}${LOG_FILE}
- /bin/mv ${XXX_PKG}"_"${XXX_VERSION}".tar.gz" -t ${RENV_CELLAR}
Yet, the Last Deployment Information still shows the old one after a few seconds when it updates. (And yes, I have verified that nothing has been executed). When I run these commands line by line manually in the terminal without elevated access from the repository root, everything works as intended.The deployment that you triggered on Mar 8, 2023 3:56:45 PM is complete. Updating last deployment information …
Is there a fix for this? Am I missing something?
edit: cpanel and whm version is 11.108.0.14, sorry I didn't realize I pasted the wrong thing
Last edited: