Commit 27ae1e18 authored by nimrod's avatar nimrod
Browse files

Scaffolding.

parent b7d4e183
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -52,3 +52,4 @@ dist/
tfplan
*.tfstate*
*.venv
mnpw

.gitlab-ci.yml

0 → 100644
+20 −0
Original line number Diff line number Diff line
---
include:
  - project: shore/ci-templates
    file: templates/pre-commit.yml

before_script:
  - >-
    echo 'deb http://deb.debian.org/debian buster-backports main'
    >> /etc/apt/sources.list
  - apt-get update
  - apt-get install -y -t buster-backports golang
  - go version

build:
  stage: build
  image: registry.hub.docker.com/library/golang:1.16-alpine
  before_script:
    - go build
  script:
    - ./mnpw
+45 −0
Original line number Diff line number Diff line
---
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v3.4.0
    hooks:
      - id: check-added-large-files
      - id: check-executables-have-shebangs
      - id: check-merge-conflict
      - id: trailing-whitespace

  - repo: https://github.com/Yelp/detect-secrets
    rev: v1.1.0
    hooks:
      - id: detect-secrets

  - repo: https://github.com/adrienverge/yamllint
    rev: v1.26.1
    hooks:
      - id: yamllint

  - repo: https://github.com/amperser/proselint/
    rev: 0.10.2
    hooks:
      - id: proselint
        types: [plain-text]
        exclude: LICENSE

  - repo: https://github.com/executablebooks/mdformat.git
    rev: 0.7.4
    hooks:
      - id: mdformat

  - repo: https://gitlab.com/devopshq/gitlab-ci-linter
    rev: v1.0.3
    hooks:
      - id: gitlab-ci-linter
        args:
          - "--server"
          - https://git.shore.co.il

  - repo: https://github.com/tekwizely/pre-commit-golang.git
    rev: v0.8.3
    hooks:
      - id: go-fmt
      - id: go-vet
+2 −0
Original line number Diff line number Diff line
# My Nagios Plugin Wrapper

[![pipeline status](https://git.shore.co.il/shore/mnpw/badges/master/pipeline.svg)](https://git.shore.co.il/shore/mnpw/-/commits/master)

## License

This software is licensed under the MIT license (see `LICENSE.txt`).

go.mod

0 → 100644
+3 −0
Original line number Diff line number Diff line
module git.shore.co.il/shore/mnpw

go 1.15
Loading