github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/bitbucket/yaml/testdata/steps/example9.yaml (about)

     1  # Example using deployment to set the deployment environment for stages
     2  
     3  pipelines:
     4    default:
     5      - stage:
     6          name: Build and test
     7          deployment: staging
     8          steps:
     9            - step:
    10                name: Build app
    11                script:
    12                  - sh ./build-app.sh
    13            - step:
    14                name: Run unit tests
    15                script:
    16                  - sh ./run-tests.sh
    17      - stage:
    18          name: Deploy to Production
    19          deployment: prod
    20          trigger: manual
    21          steps:
    22            - step:
    23                name: Build app
    24                script:
    25                  - sh ./build-app.sh
    26            - step:
    27                name: Run unit tests
    28                script:
    29                  - sh ./run-tests.sh