Commit 98af20f1 authored by Simon Cornet's avatar Simon Cornet
Browse files

[ci] added lint step

parent 72e3c992
Loading
Loading
Loading
Loading
+64 −13
Original line number Diff line number Diff line
---

# linting
name: 'linting'
kind: 'pipeline'
type: 'kubernetes'

# linter steps
steps:

  # linter
  - name: 'lekker linten'
    image: 'cr.simoncor.net/siempie/ansible-deployment'
    when:
      branch:
        - 'master'
      event:
        - 'push'

    commands:

      # fix permissions
      - 'chmod o-w .'

      # yamllint
      - 'yamllint manifests/'


  # mattermost notifications
  - name: 'notification - failure'
    image: 'docker.io/plugins/slack:linux-amd64'
    when:
      status: 'failure'
      branch:
        - 'master'

    settings:
      webhook: 'https://im.hackerboys.nl/hooks/m3xgigks73ymjmhj8wok31tt3o'
      channel: 'system-errors'
      template: |
        Linting of {{repo.owner}}/{{repo.name}}@{{truncate build.commit 8}} failed
        | Build: {{build.number}} ({{build.link}})                                


# login for cr.simoncor.net
image_pull_secrets:
  - 'dockerconfig'


# kubernetes deployment
---
kind: 'pipeline'
name: 'build'
type: 'kubernetes'

depends_on:
  - 'linting'

# disable clone
clone:
  disable: true


# deployment step
steps: