Use gitea registry.
This commit is contained in:
20
.drone.yml
20
.drone.yml
@@ -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}
|
||||
45
.gitea/workflows/release.yml
Normal file
45
.gitea/workflows/release.yml
Normal file
@@ -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
|
||||
|
||||
@@ -15,6 +15,3 @@ scrape_configs:
|
||||
- job_name: traefik
|
||||
static_configs:
|
||||
- targets: ['traefik.fam-steinle.de']
|
||||
- job_name: apcupsd
|
||||
static_configs:
|
||||
- targets: ['apc.lan']
|
||||
|
||||
Reference in New Issue
Block a user