forked from prometheus-community/ipmi_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #3 from platinasystems/prometheus-community-master
Align the repo
- Loading branch information
Showing
31 changed files
with
383 additions
and
261 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,57 @@ | ||
--- | ||
name: Push README to Docker Hub | ||
on: | ||
push: | ||
paths: | ||
- "README.md" | ||
- "README-containers.md" | ||
- ".github/workflows/container_description.yml" | ||
branches: [ main, master ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
PushDockerHubReadme: | ||
runs-on: ubuntu-latest | ||
name: Push README to Docker Hub | ||
if: github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks. | ||
steps: | ||
- name: git checkout | ||
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | ||
- name: Set docker hub repo name | ||
run: echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> $GITHUB_ENV | ||
- name: Push README to Dockerhub | ||
uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 # v1 | ||
env: | ||
DOCKER_USER: ${{ secrets.DOCKER_HUB_LOGIN }} | ||
DOCKER_PASS: ${{ secrets.DOCKER_HUB_PASSWORD }} | ||
with: | ||
destination_container_repo: ${{ env.DOCKER_REPO_NAME }} | ||
provider: dockerhub | ||
short_description: ${{ env.DOCKER_REPO_NAME }} | ||
# Empty string results in README-containers.md being pushed if it | ||
# exists. Otherwise, README.md is pushed. | ||
readme_file: '' | ||
|
||
PushQuayIoReadme: | ||
runs-on: ubuntu-latest | ||
name: Push README to quay.io | ||
if: github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks. | ||
steps: | ||
- name: git checkout | ||
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | ||
- name: Set quay.io org name | ||
run: echo "DOCKER_REPO=$(echo quay.io/${GITHUB_REPOSITORY_OWNER} | tr -d '-')" >> $GITHUB_ENV | ||
- name: Set quay.io repo name | ||
run: echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> $GITHUB_ENV | ||
- name: Push README to quay.io | ||
uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 # v1 | ||
env: | ||
DOCKER_APIKEY: ${{ secrets.QUAY_IO_API_TOKEN }} | ||
with: | ||
destination_container_repo: ${{ env.DOCKER_REPO_NAME }} | ||
provider: quay | ||
# Empty string results in README-containers.md being pushed if it | ||
# exists. Otherwise, README.md is pushed. | ||
readme_file: '' |
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,12 +1,10 @@ | ||
--- | ||
linters: | ||
enable: | ||
- sloglint | ||
|
||
issues: | ||
exclude-rules: | ||
- path: _test.go | ||
linters: | ||
- errcheck | ||
|
||
linters-settings: | ||
errcheck: | ||
exclude-functions: | ||
# Never check for logger errors. | ||
- (github.com/go-kit/log.Logger).Log |
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,5 +1,7 @@ | ||
--- | ||
extends: default | ||
ignore: | | ||
ui/react-app/node_modules | ||
|
||
rules: | ||
braces: | ||
|
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 |
---|---|---|
|
@@ -27,7 +27,9 @@ RUN make | |
RUN mv ipmi_exporter / | ||
|
||
#Copy the ipmi_expoter binary | ||
FROM alpine:3 | ||
ARG ARCH="amd64" | ||
ARG OS="linux" | ||
FROM --platform=${OS}/${ARCH} alpine:3 | ||
RUN apk --no-cache add freeipmi | ||
LABEL maintainer="The Prometheus Authors <[email protected]>" | ||
WORKDIR / | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.8.0 | ||
1.9.0 |
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.