Skip to content
Snippets Groups Projects
Commit 27ae1e18 authored by nimrod's avatar nimrod
Browse files

Scaffolding.

parent b7d4e183
No related branches found
No related tags found
No related merge requests found
Pipeline #1739 passed
......@@ -52,3 +52,4 @@ dist/
tfplan
*.tfstate*
*.venv
mnpw
---
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
---
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
# 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
package main
import (
"os"
)
func main() {
os.Exit(0)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment