Google Compute Engine with YAML

Google Compute Engine [Password]

YAML parameters for Google Compute Engine

NameTypeDescription
action RequiredStringThe ID of the action.
type RequiredStringThe type of the action. Should be set to GCE.
authentication_mode RequiredStringThe authentication mode for SSH. Should be set to PASS.
host RequiredStringThe host for the connection.
login RequiredStringThe username required to connect to the server.
port RequiredStringThe port for the connection.
input_typeStringDefines whether the files are deployed from the repository or from the build filesystem. Can be one of SCM_REPOSITORY or BUILD_ARTIFACTS.
local_pathStringThe path in the repository.
passwordStringThe password required to connect to the server.
remote_pathStringThe absolute or relative path on the remote server.
deployment_excludesString[]The paths and/or files that will be left out during the deployment.
deployment_includesString[]The exceptions from the ignore patterns set in deployment_excludes.

YAML example for Google Compute Engine

yaml
actions: - action: "Upload files to GCE" type: "GCE" input_type: "SCM_REPOSITORY" local_path: "/src" remote_path: "/www" login: "api_tests_user" password: "$api_tests_password" host: "123.45.67.89" port: "22" authentication_mode: "PASS" deployment_excludes: - "/tmp" - "*.log" deployment_includes: - "/tmp/assets" - "/tmp/styles"

Google Compute Engine [Private Key]

YAML parameters for Google Compute Engine

NameRequiredTypeDescription
action RequiredStringThe ID of the action.
type RequiredStringThe type of the action. Should be set to GCE.
authentication_mode RequiredStringThe authentication mode for SSH. Should be set to PRIVATE_KEY or ENV_KEY.
host RequiredStringThe host for the connection.
login RequiredStringThe username required to connect to the server.
port RequiredStringThe port for the connection.
server_key RequiredStringThe private SSH key. Required if authentication_mode is set to PRIVATE_KEY.
env_key RequiredStringThe private SSH key name defined in environment variables. Required if authentication_mode is set to ENV_KEY.
input_typeStringDefines whether the files are deployed from the repository or from the build filesystem. Can be one of SCM_REPOSITORY or BUILD_ARTIFACTS.
local_pathStringThe path in the repository.
passphraseStringThe passphrase for the private SSH key.
remote_pathStringThe absolute or relative path on the remote server.
deployment_excludesString[]The paths and/or files that will be left out during the deployment.
deployment_includesString[]The exceptions from the ignore patterns set in deployment_excludes.

YAML example for Google Compute Engine

yaml
actions: - action: "Upload files to GCE" type: "GCE" input_type: "SCM_REPOSITORY" local_path: "/src" remote_path: "/www" login: "api_tests_user" host: "123.45.67.89" port: "22" server_key: "secure!5sC8oH94UIHZVKIUxTp0q/lSHjIgjP6+Lz0/6BpaKII=" passphrase: "api_tests_passphrase" authentication_mode: "PRIVATE_KEY" deployment_excludes: - "/tmp" - "*.log" deployment_includes: - "/tmp/assets" - "/tmp/styles"
yaml
actions: - action: "Upload files to GCE" type: "GCE" input_type: "SCM_REPOSITORY" local_path: "/src" remote_path: "/www" login: "api_tests_user" host: "123.45.67.89" port: "22" server_key: "secure!5sC8oH94UIHZVKIUxTp0q/lSHjIgjP6+Lz0/6BpaKII=" env_key: "MyKey" passphrase: "api_tests_passphrase" authentication_mode: "ENV_KEY" deployment_excludes: - "/tmp" - "*.log" deployment_includes: - "/tmp/assets" - "/tmp/styles"

Google Compute Engine [Private Key & Password]

YAML parameters for Google Compute Engine

NameTypeDescription
action RequiredStringThe ID of the action.
type RequiredStringThe type of the action. Should be set to GCE.
authentication_mode RequiredStringThe authentication mode for SSH. Should be set to PRIVATE_KEY_AND_PASS.
host RequiredStringThe host for the connection.
login RequiredStringThe username required to connect to the server.
password RequiredStringThe password required to connect to the server.
port RequiredStringThe port for the connection.
server_key RequiredStringThe private SSH key.
input_typeStringDefines whether the files are deployed from the repository or from the build filesystem. Can be one of SCM_REPOSITORY or BUILD_ARTIFACTS.
local_pathStringThe path in the repository.
passphraseStringThe passphrase for the private SSH key.
remote_pathStringThe absolute or relative path on the remote server.
deployment_excludesString[]The paths and/or files that will be left out during the deployment.
deployment_includesString[]The exceptions from the ignore patterns set in deployment_excludes.

YAML example for Google Compute Engine

yaml
actions: - action: "Upload files to GCE" type: "GCE" input_type: "SCM_REPOSITORY" local_path: "/src" remote_path: "/www" login: "api_tests_user" host: "123.45.67.89" port: "22" server_key: "secure!5sC8oH94UIHZVKIUxTp0q/lSHjIgjP6+Lz0/6BpaKII=" passphrase: "api_tests_passphrase" password: "api_tests_password" authentication_mode: "PRIVATE_KEY_AND_PASS" deployment_excludes: - "/tmp" - "*.log" deployment_includes: - "/tmp/assets" - "/tmp/styles"

Last modified on Sep 24, 2024