Skip to content

Setting env variables via deploy_repo #196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
fh-mthomson opened this issue Jun 29, 2023 · 0 comments
Open

Setting env variables via deploy_repo #196

fh-mthomson opened this issue Jun 29, 2023 · 0 comments
Labels
feature a feature request or enhancement

Comments

@fh-mthomson
Copy link
Contributor

Motivating context: we'd like users to be able to deploy to Connect BOTH:

  1. via Git (connectapi: already supported; rsconnect: see Deploy via Git using rsconnect rstudio/rsconnect#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 rstudio/rsconnect#859 (comment):

Sys.setenv(SECRET = "forty-two")

connectapi::deploy_repo(
    client = connectapi::connect(),
    repository = "X",
    branch = "Y",
    subdirectory = "Z",
    envVars = c("SECRET")
 )
@fh-mthomson fh-mthomson changed the title Setting env variables: connectapi vs. rsconnect Setting env variables via deploy_repo Jun 29, 2023
@colearendt colearendt added the feature a feature request or enhancement label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants