Skip to content

Commit

Permalink
fix pipeline for tagging (#323)
Browse files Browse the repository at this point in the history
* fix prefix trimming by using ${GITHUB_REF##*/} to get the tag name
* bump version to 2.2.9
  • Loading branch information
BenjiU committed Jul 22, 2023
1 parent 0317539 commit 7ab0b71
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ jobs:
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- if: github.event_name == 'release' && github.event.action == 'created'
run: |
# Remove prefix
TAG_NAME=${GITHUB_REF:9}
# Remove prefix release
TAG_NAME=${GITHUB_REF##*/}
# Change slashes to hyphens
TAG_NAME=${TAG_NAME//\//-}
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 .
- if: github.event_name == 'push'
run: |
# Remove prefix
TAG_NAME=${GITHUB_REF:11}
# Remove prefix push
TAG_NAME=${GITHUB_REF##*/}
# Change slashes to hyphens
TAG_NAME=${TAG_NAME//\//-}
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 .
Expand Down
2 changes: 1 addition & 1 deletion mqtt_io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Top level of MQTT IO package.
"""

VERSION = "2.2.8"
VERSION = "2.2.9"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mqtt-io"
version = "2.2.8"
version = "2.2.9"
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."
readme = "README.md"
authors = ["Ellis Percival <mqtt-io@failcode.co.uk>"]
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 2.2.8
current_version = 2.2.9
commit = True
tag = True
tag_name = {new_version}
Expand Down

0 comments on commit 7ab0b71

Please sign in to comment.