Learn R Programming

tic (version 0.4.0)

step_install_ssh_keys: Step: Install an SSH key

Description

Writes a private SSH key encoded in an environment variable to a file in ~/.ssh. Only run in non-interactive settings and if the environment variable exists and is non-empty. The travis::use_travis_deploy() and use_tic() functions encode a private key as an environment variable for use with this function.

Usage

step_install_ssh_keys(name = "TRAVIS_DEPLOY_KEY")

Arguments

name

[string] Name of the environment variable and the target file, default: "TRAVIS_DEPLOY_KEY".

See Also

travis::use_travis_deploy(), use_tic()

Other steps: step_add_to_drat(), step_add_to_known_hosts(), step_build_pkgdown(), step_do_push_deploy(), step_hello_world(), step_install_pkg, step_push_deploy(), step_run_code(), step_setup_push_deploy(), step_setup_ssh(), step_test_ssh(), step_write_text_file()

Examples

Run this code
# NOT RUN {
dsl_init()

get_stage("before_deploy") %>%
  add_step(step_install_ssh_keys())

dsl_get()
# }

Run the code above in your browser using DataLab