Sign inSign up

codeship/build-waiter

By codeship

•Updated over 8 years ago
Archived

A utility which will block until all of the previously run builds for a given branch are completed.

Image
0

1.0K

codeship/build-waiter repository overview

⁠Usage

Add the build-waiter service to your codeship-services.yml:

app:
  build:
    dockerfile_path: Dockerfile
waiter:
  image: codeship/build-waiter
  encrypted_env_file: waitercfg.encrypted

Add the a step to your codeship-steps.yml to call the build-waiter in the approprate spot:

- service: waiter
  command: build-waiter
  tag: ^master$
- service: app
  command: sleep 300
- service: app
  command: printenv

To only have the waiter wait on certain branches you can add use a tag directive. In our above example, the waiter would only be present for master branches.

Add waitercfg.encrypted file containing the following environment variables:

[email protected]
CODESHIP_PASSWORD=password123
CODESHIP_ORGANIZATION=acme

Note that the CODESHIP_ORGANIZATION should contain the organization the project resides in.

Tag summary

Content type

Image

Digest

Size

6 MB

Last updated

over 8 years ago

docker pull codeship/build-waiter