diff --git a/.github/workflows/build-and-push-Docker-image.yml b/.github/workflows/build-and-push-Docker-image.yml index 461ca12..2c9e0b7 100644 --- a/.github/workflows/build-and-push-Docker-image.yml +++ b/.github/workflows/build-and-push-Docker-image.yml @@ -50,3 +50,4 @@ jobs: tags: ${{ steps.image-name.outputs.full-image-name }} cache-from: type=gha cache-to: type=gha,mode=min + no-cache-filters: install-pacta diff --git a/Dockerfile b/Dockerfile index 4a9289c..8f8be6a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ # set proper base image ARG R_VERS="4.3.1" -FROM rocker/r-ver:$R_VERS +FROM rocker/r-ver:$R_VERS AS base # set Docker image labels LABEL org.opencontainers.image.source=https://github.com/RMI-PACTA/workflow.pacta @@ -46,6 +46,8 @@ RUN echo "options(repos = c(CRAN = '$CRAN_REPO'), pkg.sysreqs = FALSE)" >> "${R_ # install packages for dependency resolution and installation && Rscript -e "install.packages('pak'); pak::pkg_install('renv')" +FROM base AS install-pacta + # copy in everything from this repo COPY . /