Compare commits
9 Commits
v1.10.0
...
paho-v2-up
| Author | SHA1 | Date | |
|---|---|---|---|
| 2adc527693 | |||
| af92529ac8 | |||
| e1e0cf0ff2 | |||
| 62d935ba4a | |||
| e25118fc33 | |||
| 2a33fc9302 | |||
| 5b14168d6b | |||
| b55c3df231 | |||
| ac3ad18d84 |
@@ -38,6 +38,13 @@ jobs:
|
||||
- name: Checkout repository
|
||||
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
|
||||
run: docker build -t harbor.evanshome.io/library/py-eagle-mqtt:latest ./Docker/
|
||||
|
||||
@@ -52,8 +59,5 @@ jobs:
|
||||
- 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 }}
|
||||
|
||||
- name: Login to Harbor
|
||||
run: docker login -u ${{ secrets.HARBOR_USERNAME }} -p ${{ secrets.HARBOR_PASSWORD }} harbor.evanshome.io
|
||||
|
||||
- name: Push Docker image to Harbor
|
||||
run: docker push --all-tags harbor.evanshome.io/library/py-eagle-mqtt
|
||||
@@ -31,7 +31,7 @@ build:
|
||||
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
|
||||
|
||||
release:
|
||||
image: node:20.10.0-alpine3.18
|
||||
image: node:20.11.1-alpine3.18
|
||||
stage: release
|
||||
only:
|
||||
refs:
|
||||
|
||||
@@ -28,6 +28,6 @@ RUN apk --update add --no-cache logrotate && \
|
||||
|
||||
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
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
paho-mqtt==1.6.1
|
||||
paho-mqtt~=2.0.0
|
||||
bottle==0.12.25
|
||||
defusedxml==0.7.1
|
||||
|
||||
@@ -26,7 +26,7 @@ class Client ( mqtt.Client ):
|
||||
self.on_connect = Client.on_connect
|
||||
self.on_message = Client.on_message
|
||||
|
||||
def on_connect( self, userData, flags, rc ):
|
||||
def on_connect( self, userData, flags, reason_code, properties ):
|
||||
self.subscribe( '#' )
|
||||
|
||||
def on_message( self, userData, msg ):
|
||||
@@ -62,4 +62,4 @@ client.loop_start()
|
||||
while True:
|
||||
pass
|
||||
|
||||
client.loop_stop( force=True )
|
||||
client.loop_stop()
|
||||
|
||||
Reference in New Issue
Block a user