Compare commits

..

13 Commits

Author SHA1 Message Date
e1e5661abc Use network mode host for build action.
Some checks failed
Build prometheus image / Build-and-release-image (push) Failing after 1m3s
2025-05-06 09:47:35 +00:00
269b572f64 Use newer build-push action.
All checks were successful
Build prometheus image / Build-and-release-image (push) Successful in 1m26s
2025-04-30 08:09:27 +00:00
bbefb1dd7b Remove glances from monitoring stack.
All checks were successful
Build prometheus image / Build-and-release-image (push) Successful in 2m17s
2025-04-18 14:40:52 +02:00
1e0435015d .gitea/workflows/release.yml aktualisiert
All checks were successful
Build prometheus image / Build-and-release-image (push) Successful in 52s
2025-04-01 12:51:38 +02:00
780d5edf83 Use external domain name for glances. 2025-03-26 14:57:40 +01:00
75c3d3089f Add glances data to prometheus. 2025-03-26 12:27:31 +01:00
3ae3202ece Use secrets and security scan for workflow. 2025-03-20 12:58:29 +01:00
3daf8724e3 Use gitea registry. 2025-03-18 09:57:37 +01:00
acf70b4b09 Cleanup and compress image. 2022-10-04 05:03:47 +02:00
7eedcc79ed Change domain for traefik. 2022-08-25 06:48:26 +02:00
9a1ccc0982 Correction of apcupsd configuration. 2022-07-10 09:33:25 +02:00
98e0dc33ae Scrape metrics from new apc daemon. 2022-07-10 09:29:40 +02:00
817a675395 Add traefik metrics to prometheus. 2022-06-30 06:14:06 +02:00
3 changed files with 86 additions and 18 deletions

View File

@@ -1,18 +0,0 @@
kind: pipeline
name: default
steps:
- name: build container
image: plugins/docker
settings:
dockerfile: Dockerfile
username:
from_secret: registry-username
password:
from_secret: registry-password
registry: https://cs-registry.ddnss.de
repo: cs-registry.ddnss.de/${DRONE_REPO_OWNER}/prometheus
dry_run: false
purge: false
tags:
- ${DRONE_TAG}

View File

@@ -0,0 +1,83 @@
name: Build prometheus image
on:
push:
branches: [ master ]
schedule:
# Run every Sunday at midnight
- cron: '0 0 * * 0'
env:
IMAGE: /home/prometheus
jobs:
Build-and-release-image:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: '--allow-insecure-entitlement network.host'
driver-opts: network=host
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USER }}
password: ${{ vars.DOCKERHUB_TOKEN }}
- name: Log into CS registry
uses: docker/login-action@v3
with:
registry: ${{ vars.CS_REGISTRY_URL }}
username: ${{ vars.CS_REGISTRY_USER }}
password: ${{ vars.CS_REGISTRY_PASS }}
- name: Log into local registry
uses: docker/login-action@v3
with:
registry: ${{ vars.LOCAL_REGISTRY_URL }}
username: ${{ vars.LOCAL_REGISTRY_USER }}
password: ${{ vars.LOCAL_REGISTRY_PASS }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ secrets.REGISTRY_URL }}${{ env.IMAGE }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
env:
ACTIONS_RUNTIME_TOKEN: ''
with:
allow: network.host
network: host
tags: ${{ vars.LOCAL_REGISTRY_URL }}${{ env.IMAGE }}:latest
push: true
- name: Scan image
uses: anchore/scan-action@v6
id: scan
with:
image: ${{ vars.LOCAL_REGISTRY_URL }}${{ env.IMAGE }}:latest
fail-build: false
output-format: table
severity-cutoff: critical
registry-username: ${{ vars.LOCAL_REGISTRY_USER }}
registry-password: ${{ vars.LOCAL_REGISTRY_PASS }}
grype-version: 'v0.90.0'
- name: Inspect file
run: cat ${{ steps.scan.outputs.table }}
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: scan-result
path: ${{ steps.scan.outputs.table }}

View File

@@ -12,3 +12,6 @@ scrape_configs:
- job_name: node-exporter
static_configs:
- targets: ['node-exporter.lan']
- job_name: traefik
static_configs:
- targets: ['traefik.fam-steinle.de']