Compare commits

...

9 Commits

Author SHA1 Message Date
2adc527693 update paho to v2
Some checks failed
Build and publish Image / build-and-push (push) Failing after 17s
2024-02-19 00:16:55 +00:00
af92529ac8 Change some settings for paho mqtt v2
Some checks failed
Build and publish Image / build-and-push (push) Failing after 11s
2024-02-19 00:15:41 +00:00
e1e0cf0ff2 Merge pull request 'chore(deps): update dependency docker/login-action to v2.2.0' (#48) from renovate/docker-login-action-2.x into master
Some checks failed
Semantic Release and Changelog / Patch (push) Successful in 8s
Semantic Release and Changelog / Build and Publish (push) Failing after 58s
Reviewed-on: #48
2024-02-18 03:05:57 +00:00
62d935ba4a Merge pull request 'chore(deps): update node.js to v20.11.1' (#49) from renovate/node-20.x into master
Some checks are pending
Semantic Release and Changelog / Patch (push) Waiting to run
Semantic Release and Changelog / Build and Publish (push) Waiting to run
Reviewed-on: #49
2024-02-18 03:05:39 +00:00
e25118fc33 chore(deps): update node.js to v20.11.1
Some checks failed
Build and publish Image / build-and-push (push) Failing after 9s
2024-02-18 03:04:31 +00:00
2a33fc9302 chore(deps): update dependency docker/login-action to v2.2.0
Some checks failed
Build and publish Image / build-and-push (push) Failing after 9s
2024-02-18 03:04:28 +00:00
5b14168d6b log to screen
Some checks failed
Semantic Release and Changelog / Patch (push) Successful in 7s
Semantic Release and Changelog / Build and Publish (push) Failing after 13s
2024-02-10 21:48:04 +00:00
b55c3df231 Update .gitea/workflows/semantic-release.yaml
All checks were successful
Semantic Release and Changelog / Patch (push) Successful in 6s
Semantic Release and Changelog / Build and Publish (push) Successful in 21s
2024-02-10 21:35:42 +00:00
ac3ad18d84 Update .gitea/workflows/semantic-release.yaml
Some checks failed
Semantic Release and Changelog / Patch (push) Successful in 7s
Semantic Release and Changelog / Build and Publish (push) Failing after 6s
2024-02-10 21:32:35 +00:00
5 changed files with 12 additions and 8 deletions

View File

@@ -38,6 +38,13 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4.1.1 uses: actions/checkout@v4.1.1
- name: Login to Harbor
uses: docker/login-action@v2.2.0
with:
registry: harbor.evanshome.io
username: "robot$registry-bot"
password: ${{ secrets.HARBOR_PASSWORD }}
- name: Build Docker image - name: Build Docker image
run: docker build -t harbor.evanshome.io/library/py-eagle-mqtt:latest ./Docker/ run: docker build -t harbor.evanshome.io/library/py-eagle-mqtt:latest ./Docker/
@@ -52,8 +59,5 @@ jobs:
- name: tag with name - name: tag with name
run: docker tag harbor.evanshome.io/library/py-eagle-mqtt:latest harbor.evanshome.io/library/py-eagle-mqtt:${{ steps.taggerFinal.outputs.new_tag }} run: docker tag harbor.evanshome.io/library/py-eagle-mqtt:latest harbor.evanshome.io/library/py-eagle-mqtt:${{ steps.taggerFinal.outputs.new_tag }}
- name: Login to Harbor
run: docker login -u ${{ secrets.HARBOR_USERNAME }} -p ${{ secrets.HARBOR_PASSWORD }} harbor.evanshome.io
- name: Push Docker image to Harbor - name: Push Docker image to Harbor
run: docker push --all-tags harbor.evanshome.io/library/py-eagle-mqtt run: docker push --all-tags harbor.evanshome.io/library/py-eagle-mqtt

View File

@@ -31,7 +31,7 @@ build:
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
release: release:
image: node:20.10.0-alpine3.18 image: node:20.11.1-alpine3.18
stage: release stage: release
only: only:
refs: refs:

View File

@@ -28,6 +28,6 @@ RUN apk --update add --no-cache logrotate && \
COPY . /app COPY . /app
CMD ["python3", "-u", "/app/src/bin/tHome-eagle.py", "-c", "/app/src/conf"] CMD ["python3", "-u", "/app/src/bin/tHome-eagle.py", "-c", "/app/src/conf", "-l", "stdout"]
EXPOSE 22042 EXPOSE 22042

View File

@@ -1,3 +1,3 @@
paho-mqtt==1.6.1 paho-mqtt~=2.0.0
bottle==0.12.25 bottle==0.12.25
defusedxml==0.7.1 defusedxml==0.7.1

View File

@@ -26,7 +26,7 @@ class Client ( mqtt.Client ):
self.on_connect = Client.on_connect self.on_connect = Client.on_connect
self.on_message = Client.on_message self.on_message = Client.on_message
def on_connect( self, userData, flags, rc ): def on_connect( self, userData, flags, reason_code, properties ):
self.subscribe( '#' ) self.subscribe( '#' )
def on_message( self, userData, msg ): def on_message( self, userData, msg ):
@@ -62,4 +62,4 @@ client.loop_start()
while True: while True:
pass pass
client.loop_stop( force=True ) client.loop_stop()