posit-dev / posit-dev/connectapi

Setting env variables via `deploy_repo`

Open
#196 0 comments 1 reaction 0 assignees View on GitHub

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:

  1. via Git (connectapi: already supported; rsconnect: see https://github.com/rstudio/rsconnect/issues/888), AND:
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.