Skip to content

Commit

Permalink
chore(gh-actions): provide both docker and binary releases
Browse files Browse the repository at this point in the history
  • Loading branch information
evlli committed Mar 27, 2024
1 parent 66c549a commit 40e5fbe
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 31 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Docker

on:
push:
branches: [ "main" ]
tags: [ '*' ]
pull_request:

jobs:
docker:
uses: famedly/github-workflows/.github/workflows/docker.yml@main
with:
push: ${{ github.event_name != 'pull_request' }} # Always build, don't publish on pull requests
registry_user: famedly-ci
registry: docker-oss.nexus.famedly.de
image_name: openmetrics-vici-exporter
build_args: "VERSION=${{ matrix.version }}"
secrets: inherit
13 changes: 13 additions & 0 deletions .github/workflows/build-rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: Rust

on:
push:
branches: [main]
tags: ['*']
pull_request:

jobs:
build:
uses: famedly/github-workflows/.github/workflows/rust.yml@main
secrets: inherit
28 changes: 0 additions & 28 deletions .github/workflows/build.yml

This file was deleted.

7 changes: 4 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
version: '3'

services:
ove:
openmetrics-vici-exporter:
image: docker-oss.famedly.de/openmetrics-vici-exporter
restart: "unless-stopped"
environment:
- VICI_EXPORTER_VICI_SOCKET="/var/run/charon.vici"
- VICI_EXPORTER_VICI_INTERVAL=10
- VICI_EXPORTER_SERVER_ADDRESS=0.0.0.0
- VICI_EXPORTER_SERVER_PORT=8001
volumes:
#- ./config.yml:/opt/openmetrics-vici-exporter/config.yml
# - ./config.yml:/opt/openmetrics-vici-exporter/config.yml
- /var/run/charon.vici:/var/run/charon.vici
ports:
- 8111:80/tcp
- 8001:8001/tcp

0 comments on commit 40e5fbe

Please sign in to comment.