Updated readme and github actions

This commit is contained in:
tess1o
2024-07-07 22:38:06 +03:00
parent 6dd9d788de
commit f05bd87898
2 changed files with 7 additions and 1 deletions

View File

@@ -22,6 +22,11 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Extract GitHub tag
id: extract_tag
run: echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
if: startsWith(github.ref, 'refs/tags/')
-
name: Build and push
uses: docker/build-push-action@v5
@@ -30,4 +35,4 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: |
tess1o/go-ecoflow-exporter:latest
tess1o/go-ecoflow-exporter:${{ github.ref_name }}
tess1o/go-ecoflow-exporter:${{ steps.extract_tag.outputs.GIT_TAG || github.sha }}

View File

@@ -7,6 +7,7 @@ are:
1. Prometheus
2. TimescaleDB
3. Redis (planned, not implemented yet)
Depending on your configuration you can export the metrics to one of those systems or to all at once.