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:lts
        steps:
            - init: npm install
            - test: npm test
    publish:
        requires: [main]
        template: node/publish@4.3.1
        order: [init, publish, teardown-save-results]
        steps:
            - publish: npm install
            - teardown-save-results: cp ./results $SD_ARTIFACTS_DIR
    deploy-west:
        requires: publish
        image: node:lts
        environment:
            DEPLOY_ENV: west
        steps:
            - init: npm install
            - deploy: npm deploy
    deploy-east:
        requires: publish
        image: node:lts
        environment:
            DEPLOY_ENV: east
        steps:
            - init: npm install
            - deploy: npm deploy
    finished:
        requires: [deploy-west, deploy-east]
        image: node:lts
        steps:
            - echo: echo done
    ...