Compare commits

..

4 Commits

Author SHA1 Message Date
09905cf8f1 use build and push action
Some checks failed
Semantic Release and Changelog / Patch (push) Successful in 10s
Semantic Release and Changelog / Build and Publish (push) Failing after 10s
2024-03-06 07:37:46 +00:00
dca0f07a21 revert fe727724f0
Some checks failed
Semantic Release and Changelog / Patch (push) Successful in 7s
Semantic Release and Changelog / Build and Publish (push) Failing after 13s
revert chore(deps): update docker/login-action action to v3
2024-02-20 00:24:32 +00:00
a916aea59e Merge pull request 'chore(deps): update docker/login-action action to v3' (#50) from renovate/docker-login-action-3.x into master
Some checks failed
Semantic Release and Changelog / Patch (push) Successful in 7s
Semantic Release and Changelog / Build and Publish (push) Has been cancelled
Reviewed-on: #50
2024-02-20 00:20:45 +00:00
fe727724f0 chore(deps): update docker/login-action action to v3
Some checks failed
Build and publish Image / build-and-push (push) Failing after 12s
2024-02-20 00:13:49 +00:00
3 changed files with 9 additions and 9 deletions

View File

@@ -16,12 +16,12 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4.1.1 uses: actions/checkout@v4.1.1
- name: Build Docker image
run: docker build -t harbor.evanshome.io/library/py-eagle-mqtt:dev ./Docker/
- name: Login to Harbor - name: Login to Harbor
run: docker login -u ${{ secrets.HARBOR_USERNAME }} -p ${{ secrets.HARBOR_PASSWORD }} harbor.evanshome.io run: docker login -u ${{ secrets.HARBOR_USERNAME }} -p ${{ secrets.HARBOR_PASSWORD }} harbor.evanshome.io
- name: Push Docker image to Harbor - name: Build and push
run: docker push harbor.evanshome.io/library/py-eagle-mqtt:dev uses: docker/build-push-action@v5
with:
context: ./Docker/
push: true
tags: harbor.evanshome.io/library/py-eagle-mqtt:dev

View File

@@ -1,3 +1,3 @@
paho-mqtt~=2.0.0 paho-mqtt==1.6.1
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, reason_code, properties ): def on_connect( self, userData, flags, rc ):
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() client.loop_stop( force=True )