From 3daf8724e35f8036394835b8534979fbe228eb81 Mon Sep 17 00:00:00 2001 From: chris Date: Tue, 18 Mar 2025 09:57:37 +0100 Subject: [PATCH] Use gitea registry. --- .drone.yml | 20 ---------------- .gitea/workflows/release.yml | 45 ++++++++++++++++++++++++++++++++++++ prometheus.yml | 3 --- 3 files changed, 45 insertions(+), 23 deletions(-) delete mode 100644 .drone.yml create mode 100644 .gitea/workflows/release.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 7edc39c..0000000 --- a/.drone.yml +++ /dev/null @@ -1,20 +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: true - squash: true - compress: true - tags: - - ${DRONE_TAG} diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 0000000..5c0f491 --- /dev/null +++ b/.gitea/workflows/release.yml @@ -0,0 +1,45 @@ +name: Build prometheus image + +on: + push: + branches: [ master ] + +env: + # Use docker.io for Docker Hub if empty + USER: chris + PASS: q',\H(Od:G3).Xv<#!5P + + +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 + + - name: Log into registry + uses: docker/login-action@v3 + with: + registry: https://cs-git.ddnss.de + username: ${{ env.USER }} + password: ${{ env.PASS }} + + - name: Extract Docker metadata + id: meta + uses: docker/metadata-action@v5 + with: + images: cs-git.ddnss.de/home/prometheus + + - name: Build and push Docker image + uses: docker/build-push-action@v4 + env: + ACTIONS_RUNTIME_TOKEN: '' + with: + tags: cs-git.ddnss.de/home/prometheus:latest + push: true + diff --git a/prometheus.yml b/prometheus.yml index 4b554e4..d013489 100644 --- a/prometheus.yml +++ b/prometheus.yml @@ -15,6 +15,3 @@ scrape_configs: - job_name: traefik static_configs: - targets: ['traefik.fam-steinle.de'] - - job_name: apcupsd - static_configs: - - targets: ['apc.lan']