Compare commits
9 Commits
prometheus
...
269094be05
| Author | SHA1 | Date | |
|---|---|---|---|
| 269094be05 | |||
| 10b20bc6e7 | |||
| 143110847e | |||
| 531c82f4c1 | |||
| 20fb6572bc | |||
| 90133d9191 | |||
| 3edf33ccc2 | |||
| 83a467888f | |||
| 2541fae443 |
14
.github/workflows/action-build-and-push.yaml
vendored
14
.github/workflows/action-build-and-push.yaml
vendored
@@ -26,6 +26,14 @@ on:
|
||||
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
|
||||
@@ -37,6 +45,11 @@ jobs:
|
||||
- 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
|
||||
|
||||
@@ -66,6 +79,7 @@ jobs:
|
||||
with:
|
||||
context: ${{ inputs.build_context }}
|
||||
file: ${{ inputs.file_path }}
|
||||
platforms: ${{ inputs.platforms }}
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
@@ -4,6 +4,7 @@ FROM prom/prometheus:latest
|
||||
|
||||
# Copy Prometheus configuration
|
||||
COPY prometheus.yaml /etc/prometheus/prometheus.yaml
|
||||
COPY prometheus-compose.yaml /etc/prometheus/prometheus-compose.yaml
|
||||
|
||||
# Switch to default user and expose port
|
||||
EXPOSE 9090
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# Prometheus main configuration
|
||||
# This configuration is adapted for Docker Compose environment
|
||||
|
||||
global:
|
||||
scrape_interval: 30s
|
||||
|
||||
@@ -60,9 +60,6 @@ services:
|
||||
|
||||
prometheus:
|
||||
image: ghcr.io/obnitram/observability/prometheus:v0.2
|
||||
command:
|
||||
- "--config.file=/etc/prometheus/prometheus.yml"
|
||||
- "--storage.tsdb.path=/prometheus"
|
||||
volumes:
|
||||
- prometheus-storage:/prometheus
|
||||
deploy:
|
||||
|
||||
Reference in New Issue
Block a user