Skip to content

Commit

Permalink
use force=TRUE only in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bschilder committed Dec 10, 2023
1 parent 89b7333 commit 42a1b34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ runs:
dockerRegistry: ${{ inputs.docker_registry }}
dockerOrg: ${{ inputs.docker_org }}
dockerUser: ${{ inputs.docker_user }}
dockerPass: ${{ inputs.DOCKER_TOKEN }}
DOCKER_TOKEN: ${{ inputs.DOCKER_TOKEN }}
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
run: |
#### Docker repos must be lowercase (,,) ####
Expand All @@ -475,7 +475,7 @@ runs:
if [[ $dockerRegistry == "docker.io" ]]; then
echo "dockerOrg=${dockerOrg,,}" >> $GITHUB_ENV
echo "dockerUser=${dockerUser}" >> $GITHUB_ENV
echo "dockerPass=${dockerPass}" >> $GITHUB_ENV;
echo "dockerPass=${DOCKER_TOKEN}" >> $GITHUB_ENV;
else
echo "dockerOrg=${GITHUB_REPOSITORY_OWNER,,}" >> $GITHUB_ENV
echo "dockerUser=${GITHUB_ACTOR}" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion inst/templates/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ RUN Rscript -e 'options(download.file.method="libcurl", crayon.enabled=TRUE, tim
if(!require("BiocManager")) install.packages("BiocManager"); \
if(!require("remotes")) install.packages("remotes"); \
repos <- BiocManager::repositories(); \
remotes::install_local(repos=repos, dependencies=TRUE, build_vignettes=FALSE, upgrade=TRUE, force=FALSE);'
remotes::install_local(repos=repos, dependencies=TRUE, build_vignettes=FALSE, upgrade=TRUE, force=TRUE);'
RUN rm -rf /$PKG

0 comments on commit 42a1b34

Please sign in to comment.