跳到主要内容

DigitalOcean Spaces with YAML

List of YAML parameters and examples for the "DigitalOcean Spaces" action.

YAML parameters for DigitalOcean Spaces

名称类型描述
action
必填
String操作名称
type
必填
StringThe type of the action. Should be set to DO_SPACES.
bucket_name
必填
StringThe name of the DigitalOcean Spaces Bucket.
integration_hash
必填
StringThe ID of the integration.
region
必填
StringThe name of the DigitalOcean Spaces region.
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.
public_accessBooleanMakes files accessible through public HTTP.
remote_pathStringThe absolute or relative path on the remote server.
deployment_excludesString[]The paths and/or files that will be left our during the deployment.
deployment_includesString[]The exceptions from the ignore patterns set in deployment_excludes.
cache_controlStringSpecifies how long objects stay in the cache.

YAML example for DigitalOcean Spaces

actions:
- action: "Upload files to DO Spaces"
type: "DO_SPACES"
input_type: "SCM_REPOSITORY"
local_path: "/assets"
bucket_name: "buddy"
public_access: true
region: "nyc3"
cache_control: "max-age=3600"
integration_hash: "5ddb7c180fb38be67bd78a88a"
deployment_excludes:
- "/tmp"
- "*.log"
deployment_includes:
- "/tmp/assets"
- "/tmp/styles"