-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from axoflow/master
metrics-exporter changes
- Loading branch information
Showing
14 changed files
with
221 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Go basic checks | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
check-license: | ||
name: Check licenses | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.20' | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: Cache licenses | ||
uses: actions/cache@v3 | ||
with: | ||
key: licensei-cache-${{ hashFiles('go.sum') }} | ||
path: ".licensei.cache" | ||
restore-keys: licensei-cache | ||
- name: Ensure licensei cache | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
run: make .licensei.cache | ||
- name: Run license check | ||
run: make check-license | ||
|
||
run-test: | ||
name: Go tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.20' | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: Run tests | ||
run: make test | ||
|
||
run-lint: | ||
name: Go lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.20' | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: Run lint | ||
run: make lint | ||
env: | ||
LINTER_FLAGS: '--timeout 5m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
approved = [ | ||
"apache-2.0", | ||
"bsd-2-clause", | ||
"bsd-3-clause", | ||
"isc", | ||
"mit", | ||
"mit-0", | ||
] | ||
|
||
ignored = [ | ||
"google.golang.org/protobuf", # Unsupported VCS, bsd-3-clause | ||
] | ||
|
||
[header] | ||
ignoreFiles = ["zz_generated.*.go", "generated.go", "cache.go"] | ||
authors = ["Axoflow"] | ||
template = """// Copyright © :YEAR: :AUTHOR: | ||
// All rights reserved.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
kind: Module | ||
description: syslog-ng metrics exporter image | ||
name: metrics-exporter-image | ||
name: axosyslog-metrics-exporter-image | ||
type: container | ||
dockerfile: Dockerfile | ||
image: ${var.imageRegistry}/${var.imageRepository}/metrics-exporter | ||
build: | ||
targetImage: prod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.