Skip to content

Commit

Permalink
fix docker build and enable image building pipeline to avoid broken d…
Browse files Browse the repository at this point in the history
…ocker builds in the future
  • Loading branch information
lwalejko committed Feb 9, 2024
1 parent 9b5f493 commit af7cf2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
branches: [ "main", "devel" ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
pull_request:
branches: [main, devel]
workflow_dispatch:

env:
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ ENV RENV_CONFIG_SANDBOX_ENABLED=FALSE

COPY ./renv ./renv
COPY .Rprofile .

# Both renv.lock and DESCRIPTION are needed to restore the R environment
COPY renv.lock .
COPY DESCRIPTION .

RUN R -e 'renv::restore()'

COPY .Rbuildignore .
COPY DESCRIPTION .
COPY NAMESPACE .
COPY inst/ ./inst
COPY R/ ./R
Expand Down

0 comments on commit af7cf2a

Please sign in to comment.