Skip to content

chore(ci): optimize build pipeline with pre-built R base image - #282

Open
pierina-ixpantia wants to merge 5 commits into
mainfrom
chore/use-prebuilt-r-base-image
Open

pierina-ixpantia wants to merge 5 commits into
mainfrom
chore/use-prebuilt-r-base-image

Conversation

@pierina-ixpantia

Copy link
Copy Markdown
Member

Closes #281

Summary

Refactors the Docker build process in nightly and release workflows to drastically cut execution time by decoupling the R base layer installation:

  • Pre-built Base Image: Consumes ghcr.io/ixpantia/faucet-r-base:latest as the base image for R environments instead of compiling R from source on every matrix build.
  • Dynamic Base ARG: Updated Dockerfile to allow passing BASE_IMAGE as a build argument.
  • Cleanup: Removed redundant /scripts directory now maintained in ixpantia/faucet-r-base.

- permissions: add packages:read so workflows can pull faucet-r-base from GHCR
- login to ghcr.io with GHCR_READ_TOKEN (fork) falling back to GITHUB_TOKEN (prod)
- point each build job at faucet-r-base:rX.Y instead of :latest + dead R_VERSION arg
- namespace images with vars.DOCKERHUB_NAMESPACE, defaulting to ixpantia

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(ci): reduce Docker build times by using pre-built R base image

1 participant