diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eb02cca..87926f4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,6 @@ --- on: - create: + push: tags: - '*' @@ -17,6 +17,9 @@ jobs: - name: Get the tag name run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV + - name: Get the tag name + run: echo "SHA_SHORT=${GITHUB_SHA::7}" >> $GITHUB_ENV + - name: Login to DockerHub uses: docker/login-action@v1 with: @@ -37,7 +40,7 @@ jobs: tags: | ${{ github.repository }}:latest ${{ github.repository }}:${{ env.TAG }} - ${{ github.repository }}:${GITHUB_SHA::7} + ${{ github.repository }}:${{ env.SHA_SHORT }} ghcr.io/${{ github.repository }}:latest ghcr.io/${{ github.repository }}:${{ env.TAG }} - ghcr.io/user/${{ github.repository }}:${GITHUB_SHA::7} + ghcr.io/user/${{ github.repository }}:${{ env.SHA_SHORT }} diff --git a/mqtt_exporter.py b/mqtt_exporter.py old mode 100644 new mode 100755 index 65e9b3d..75971a5 --- a/mqtt_exporter.py +++ b/mqtt_exporter.py @@ -14,7 +14,7 @@ import sys from yamlreader import yaml_load -VERSION = '1.2.2' +VERSION = '1.2.3' def _read_config(config_path):