mirror of
https://github.com/tess1o/go-ecoflow-exporter.git
synced 2025-11-02 13:03:24 +00:00
Updated readme and github actions
This commit is contained in:
7
.github/workflows/docker-image.yml
vendored
7
.github/workflows/docker-image.yml
vendored
@@ -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 }}
|
||||
Reference in New Issue
Block a user