Browse Source

init repo

pull/1/head
fedy95 4 years ago
commit
f74d291147
  1. 12
      .editorconfig
  2. 16
      Makefile
  3. 6
      README.md
  4. 11
      image/Dockerfile
  5. 10
      image/relaxed.yaml

12
.editorconfig

@ -0,0 +1,12 @@
root = true
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true
[.drone.yml]
indent_size = 2

16
Makefile

@ -0,0 +1,16 @@
MAKEFLAGS += --silent
.PHONY: *
YAMLLINT_TAG=latest
build_yamllint:
docker build -t fedy95/baseimage:yamllint-${YAMLLINT_TAG} image -f image/Dockerfile
lint:
@docker run --rm $$(tty -s && echo "-it" || echo) -v $(PWD):/data fedy95/baseimage:yamllint-latest .
lint_help:
docker run --rm -v $(pwd):/data fedy95/baseimage:yamllint-latest --help
.DEFAULT_GOAL := build_yamllint

6
README.md

@ -0,0 +1,6 @@
### baseimage
[![Build Status](https://drone.fedy95.com/api/badges/baseimage/yamllint/status.svg)](https://drone.fedy95.com/baseimage/yamllint)
---
Baseimage for CI tasks
- [yamllint git](https://github.com/adrienverge/yamllint)

11
image/Dockerfile

@ -0,0 +1,11 @@
FROM debian:bullseye-slim
RUN apt-get update && \
apt-get install -y yamllint && \
rm -rf /var/lib/apt/lists/*
COPY relaxed.yaml /yamllint/relaxed.yaml
WORKDIR /data
ENTRYPOINT ["yamllint", "-c", "/yamllint/relaxed.yaml"]
CMD ["--help"]

10
image/relaxed.yaml

@ -0,0 +1,10 @@
---
extends: default
rules:
braces:
min-spaces-inside: 0
max-spaces-inside: -1
line-length:
max: 120
level: warning