github.com/buildtool/build-tools@v0.2.29-0.20240322150259-6a1d0a553c23/www/docs/ci/buildkite.md (about)

     1  # Buildkite
     2  
     3  [Buildkite] is configured with `.buildkite/pipeline.yml` file in your project.
     4  
     5  ## Buildkite plugin
     6  Using the Buildkite [plugin] for buildtools is probably the simplest way
     7  
     8  ```yaml
     9  steps:
    10    - command: build
    11      label: build
    12      plugins:
    13        - buildtool/buildtools:
    14    - wait
    15  
    16    - command: push
    17      label: push
    18      plugins:
    19        - buildtool/buildtools:
    20  
    21    - block: ":rocket: Release PROD"
    22      branches: "main"
    23  
    24    - command: deploy prod
    25      label: Deploy PROD
    26      branches: "main"
    27      plugins:
    28        - buildtool/buildtools:
    29            config: s3://my-buildkite-secrets/configs/myapp/env
    30  ```
    31  
    32  ## Docker plugin
    33  build-tools can also be used with the Buildkite [docker-plugin]
    34  
    35  ```yaml
    36  steps:
    37    - command: |-
    38        build
    39        push
    40      label: build
    41      plugins:
    42        - docker#v3.3.0:
    43            image: buildtool/build-tools
    44            volumes:
    45              - "/var/run/docker.sock:/var/run/docker.sock"
    46            propagate-environment: true
    47    - wait
    48  
    49    - block: ":rocket: Release PROD"
    50      branches: "main"
    51  
    52    - command: |-
    53        deploy prod
    54      label: Deploy PROD
    55      branches: "main"
    56      plugins:
    57        - docker#v3.3.0:
    58            image: buildtool/build-tools
    59            volumes:
    60              - "/var/run/docker.sock:/var/run/docker.sock"
    61            propagate-environment: true
    62  ```
    63  
    64  [Buildkite]: https://buildkite.com
    65  [plugin]: https://github.com/buildtool/buildtools-buildkite-plugin
    66  [docker-plugin]: https://github.com/buildkite-plugins/docker-buildkite-plugin