Yaml設定

ここではscrewdriver.yamlの主要な設定についてインタラクティブに紹介します。

各プロパティ名にマウスカーソルを乗せるとそれらの説明が表示されます。


shared:
    environment:
    NODE_ENV: test
    settings:
        email:
    addresses: [test@email.com, test2@email.com]
    statuses: [SUCCESS, FAILURE]
    annotations:
    beta.screwdriver.cd/my-cluster-annotation: my-data
        beta.screwdriver.cd/executor: k8s-vm
        screwdriver.cd/cpu: HIGH
        screwdriver.cd/ram: LOW
parameters:
    region: "us-west-1"
    az: 
        value: "zone 1"
        description: "default availability zone"
jobs:
      main:
        requires: [~pr, ~commit, ~sd@123:main]
        sourcePaths: ["src/app/", "screwdriver.yaml"]
        image: node:6
        steps:
    - init: npm install
    - test: npm test
    publish:
    requires: main
    image: node:6
    steps:
        - publish: npm publish
    deploy-west:
    requires: publish
    image: node:6
    environment:
        DEPLOY_ENV: west
    steps:
        - init: npm install
        - deploy: npm deploy
    deploy-east:
    requires: publish
    image: node:6
    environment:
        DEPLOY_ENV: east
    steps:
        - init: npm install
        - deploy: npm deploy
    finished:
    requires: [deploy-west, deploy-east]
    image: node:6
    steps:
        - echo: echo done
    ...