9 Commits

Author SHA1 Message Date
6b1f806aaf Update registry password secret for Loki database workflow
All checks were successful
Build and Push Loki Database / build-and-push (push) Successful in 30s
2026-01-20 10:24:43 +01:00
f19896ce3b Enable login to GitHub Container Registry and set push to true in Docker build workflow
Some checks failed
Build and Push Loki Database / build-and-push (push) Failing after 24s
2026-01-20 10:21:15 +01:00
45d0ffe3bb Add optional registry inputs to Docker build workflow for flexibility
All checks were successful
Build and Push Loki Database / build-and-push (push) Successful in 16s
2026-01-20 10:17:51 +01:00
6efe762f49 Enable Docker build and push step in action-build-and-push.yaml with push set to false
All checks were successful
Build and Push Loki Database / build-and-push (push) Successful in 1m10s
2026-01-20 10:11:20 +01:00
fb54e86d3d Comment out Docker login and build steps in action-build-and-push.yaml
All checks were successful
Build and Push Loki Database / build-and-push (push) Successful in 11s
2026-01-20 09:56:27 +01:00
269094be05 Remove obsolete Gitea workflows for observability components and demo 2026-01-20 09:54:58 +01:00
10b20bc6e7 Update version number in README.md to V1.0.1
Some checks failed
Build and Push Loki Database / build-and-push (push) Failing after 11m18s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
2026-01-20 09:36:47 +01:00
143110847e Add version number to README.md
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 2s
2026-01-20 09:35:12 +01:00
531c82f4c1 Fix formatting in README.md by adding a newline at the end of the file
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 3s
2026-01-20 09:25:47 +01:00
9 changed files with 36 additions and 179 deletions

View File

@@ -1,85 +0,0 @@
name: Docker Build & Push to GitHub Container Registry (Use git tags with format vX.Y.Z as release version)
on:
workflow_call:
inputs:
image_name:
type: string
required: true
description: >
Docker image name without registry and owner.
Example: observability/alloy
build_context:
type: string
required: false
default: .
description: >
Path to the Docker build context.
Example: . or ./services/api
file_path:
type: string
required: false
default: ./Dockerfile
description: >
Path to the Dockerfile relative to the repository root.
Example: ./Dockerfile or ./services/api/Dockerfile
platforms:
type: string
required: false
default: linux/amd64,linux/arm64
description: >
Comma-separated list of target platforms to build.
Example: linux/amd64,linux/arm64
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
# - name: Set up QEMU (for cross-arch builds)
# uses: docker/setup-qemu-action@v3
# with:
# platforms: arm64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Ensure lowercase username because some registries do not allow uppercase letters
id: lowercase
run: echo "username=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ steps.lowercase.outputs.username }}/${{ inputs.image_name }}
tags: |
type=match,pattern=.*(v\d+\.\d+\.\d+),group=1
type=match,pattern=.*(v\d+\.\d+)\.\d+,group=1
type=match,pattern=.*(v\d+)\.\d+\.\d+,group=1
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Build and push
# uses: docker/build-push-action@v6
# with:
# context: ${{ inputs.build_context }}
# file: ${{ inputs.file_path }}
# platforms: ${{ inputs.platforms }}
# push: true
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}

View File

@@ -1,17 +0,0 @@
name: Build and Push Alloy
on:
push:
tags:
- "alloy-v*.*.*"
jobs:
build-and-push:
uses: ./.github/workflows/action-build-and-push.yaml
permissions:
contents: read
packages: write
with:
image_name: observability/alloy
build_context: ./observability/alloy
file_path: ./observability/alloy/Dockerfile

View File

@@ -1,17 +0,0 @@
name: Build and Push Grafana Observability
on:
push:
tags:
- "grafana-v*.*.*"
jobs:
build-and-push:
uses: ./.github/workflows/action-build-and-push.yaml
permissions:
contents: read
packages: write
with:
image_name: observability/grafana
build_context: ./observability/grafana
file_path: ./observability/grafana/Dockerfile

View File

@@ -1,17 +0,0 @@
name: Build and Push Loki Database
on:
push:
tags:
- "loki-v*.*.*"
jobs:
build-and-push:
uses: ./.github/workflows/action-build-and-push.yaml
permissions:
contents: read
packages: write
with:
image_name: observability/loki
build_context: ./observability/loki
file_path: ./observability/loki/Dockerfile

View File

@@ -1,17 +0,0 @@
name: Build and Push Prometheus Observability
on:
push:
tags:
- "prometheus-v*.*.*"
jobs:
build-and-push:
uses: ./.github/workflows/action-build-and-push.yaml
permissions:
contents: read
packages: write
with:
image_name: observability/prometheus
build_context: ./observability/prometheus
file_path: ./observability/prometheus/Dockerfile

View File

@@ -1,20 +0,0 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."
- run: echo "✅ The workflow has completed successfully!"

View File

@@ -34,6 +34,30 @@ on:
Comma-separated list of target platforms to build. Comma-separated list of target platforms to build.
Example: linux/amd64,linux/arm64 Example: linux/amd64,linux/arm64
registry:
type: string
required: false
default: ghcr.io
description: >
Container registry to push the image to.
Example: ghcr.io or docker.io
registry_username:
type: string
required: false
default: ${{ github.repository_owner }}
description: >
Username for the container registry.
Example: myusername
registry_password:
type: string
required: false
default: ${{ secrets.GITHUB_TOKEN }}
description: >
Password or token for the container registry.
Example: secrets.GITHUB_TOKEN
jobs: jobs:
build-and-push: build-and-push:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -61,7 +85,7 @@ jobs:
id: meta id: meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
images: ghcr.io/${{ steps.lowercase.outputs.username }}/${{ inputs.image_name }} images: ${{ inputs.registry }}/${{ steps.lowercase.outputs.username }}/${{ inputs.image_name }}
tags: | tags: |
type=match,pattern=.*(v\d+\.\d+\.\d+),group=1 type=match,pattern=.*(v\d+\.\d+\.\d+),group=1
type=match,pattern=.*(v\d+\.\d+)\.\d+,group=1 type=match,pattern=.*(v\d+\.\d+)\.\d+,group=1
@@ -70,9 +94,9 @@ jobs:
- name: Login to GitHub Container Registry - name: Login to GitHub Container Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ghcr.io registry: ${{ inputs.registry }}
username: ${{ github.repository_owner }} username: ${{ inputs.registry_username }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ inputs.registry_password }}
- name: Build and push - name: Build and push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6

View File

@@ -14,4 +14,8 @@ jobs:
with: with:
image_name: observability/loki image_name: observability/loki
build_context: ./observability/loki build_context: ./observability/loki
file_path: ./observability/loki/Dockerfile file_path: ./observability/loki/Dockerfile
registry: gitea.obnitram.cloud
registry_username: ${{ github.repository_owner }}
registry_password: ${{ secrets.REGISTRY_GITEA }}

View File

@@ -1 +1,3 @@
# devops # devops
V1.0.1