Skip to content

Commit 7ab0b71

Browse files
authored
fix pipeline for tagging (#323)
* fix prefix trimming by using ${GITHUB_REF##*/} to get the tag name * bump version to 2.2.9
1 parent 0317539 commit 7ab0b71

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ jobs:
6363
password: ${{ secrets.DOCKER_HUB_TOKEN }}
6464
- if: github.event_name == 'release' && github.event.action == 'created'
6565
run: |
66-
# Remove prefix
67-
TAG_NAME=${GITHUB_REF:9}
66+
# Remove prefix release
67+
TAG_NAME=${GITHUB_REF##*/}
6868
# Change slashes to hyphens
6969
TAG_NAME=${TAG_NAME//\//-}
7070
docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 -t flyte/mqtt-io:${TAG_NAME} -t flyte/mqtt-io:latest --push --build-arg BUILDX_QEMU_ENV=true .
7171
- if: github.event_name == 'push'
7272
run: |
73-
# Remove prefix
74-
TAG_NAME=${GITHUB_REF:11}
73+
# Remove prefix push
74+
TAG_NAME=${GITHUB_REF##*/}
7575
# Change slashes to hyphens
7676
TAG_NAME=${TAG_NAME//\//-}
7777
docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 -t flyte/mqtt-io:${TAG_NAME} --push --build-arg BUILDX_QEMU_ENV=true .

mqtt_io/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Top level of MQTT IO package.
33
"""
44

5-
VERSION = "2.2.8"
5+
VERSION = "2.2.9"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "mqtt-io"
3-
version = "2.2.8"
3+
version = "2.2.9"
44
description = "Expose GPIO modules (Raspberry Pi, Beaglebone, PCF8754, PiFace2 etc.), digital sensors (LM75 etc.) and serial streams to an MQTT server for remote control and monitoring."
55
readme = "README.md"
66
authors = ["Ellis Percival <[email protected]>"]

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 2.2.8
2+
current_version = 2.2.9
33
commit = True
44
tag = True
55
tag_name = {new_version}

0 commit comments

Comments
 (0)