variables:
  &image 'git.rustybever.be/chewing_bever/c-devop:alpine3.17'

branches:
  exclude: [ main ]
platform: linux/amd64

pipeline:
  lint:
    image: *image
    pull: true
    commands:
      - make lint
      - make objs CFLAGS='-Werror -fsyntax-only'
    when:
      event: [push, pull_request]