Skip to content

Instantly share code, notes, and snippets.

@PennyQ
Last active April 22, 2022 14:11
Show Gist options
  • Save PennyQ/06c8ffae5115c3ec6637fd3ad3ac4786 to your computer and use it in GitHub Desktop.
Save PennyQ/06c8ffae5115c3ec6637fd3ad3ac4786 to your computer and use it in GitHub Desktop.
# Repo: MySpace/TemplateRepo
# File: azure-pipeline.yml
name: cicd_ci
trigger:
branches:
include:
- master
stages:
- stage: CI_Checks
jobs:
- job:
displayName: yamllint_checks
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
python -m pip install --upgrade pip
pip install yamllint
yamllint -d "{extends: relaxed, rules: {line-length: {max: 200}, new-line-at-end-of-file: disable, new-lines: disable}}" .
displayName: 'YAML Lint Checks'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment