posit-dev / posit-dev/connectapi
Setting env variables via `deploy_repo`
Open
Nobody has claimed this yet.
feature
- Dominant language
- R
- Stars
- 54
- Forks
- 27
- Avg merge
- 1d 3m
- Merged PRs (30d)
- 1
Description
Motivating context: we'd like users to be able to deploy to Connect BOTH:
- via Git (
connectapi: already supported;rsconnect: see https://github.com/rstudio/rsconnect/issues/888), AND: - Setting env vars at the time of deployment (
connectapi: newly-supported,rsconnect: this issue)
For connectapi, I'm envisioning a parallel version of https://github.com/rstudio/rsconnect/issues/859#issuecomment-1600949465:
Sys.setenv(SECRET = "forty-two")
connectapi::deploy_repo(
client = connectapi::connect(),
repository = "X",
branch = "Y",
subdirectory = "Z",
envVars = c("SECRET")
)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the deploy_repo entry point and the referenced rsconnect issue and comment for the intended environment-variable behavior. Compare the existing Git deployment path with the proposed envVars usage; done means deployment can accept selected environment variables at deployment time for the rsconnect path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100