steps:
  lint:
    image: debian:stable-slim
    commands:
      - apt-get update
      - apt-get install -y curl
      - curl -SL https://github.com/docker/compose/releases/download/v2.20.3/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
      - chmod +x //usr/local/bin/docker-compose
      - sh .ci/lint.sh
    when:
      - event: pull_request
        repo: gnouseu/docker-services
      - event: push
        branch: main