Compare commits

...

17 Commits

Author SHA1 Message Date
erichardson 2adc527693 update paho to v2
Build and publish Image / build-and-push (push) Failing after 17s
2024-02-19 00:16:55 +00:00
erichardson af92529ac8 Change some settings for paho mqtt v2
Build and publish Image / build-and-push (push) Failing after 11s
2024-02-19 00:15:41 +00:00
erichardson 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
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
erichardson 62d935ba4a Merge pull request 'chore(deps): update node.js to v20.11.1' (#49) from renovate/node-20.x into master
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
renovate e25118fc33 chore(deps): update node.js to v20.11.1
Build and publish Image / build-and-push (push) Failing after 9s
2024-02-18 03:04:31 +00:00
renovate 2a33fc9302 chore(deps): update dependency docker/login-action to v2.2.0
Build and publish Image / build-and-push (push) Failing after 9s
2024-02-18 03:04:28 +00:00
erichardson 5b14168d6b log to screen
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
erichardson b55c3df231 Update .gitea/workflows/semantic-release.yaml
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
erichardson ac3ad18d84 Update .gitea/workflows/semantic-release.yaml
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
erichardson dadbccbebf allow logging output of container
Semantic Release and Changelog / Patch (push) Successful in 7s
Semantic Release and Changelog / Build and Publish (push) Failing after 8s
2024-02-10 21:16:23 +00:00
erichardson fa0c5dd0c5 Refactor docker file and remove cache to clean up packages after
Semantic Release and Changelog / Patch (push) Successful in 9s
Semantic Release and Changelog / Build and Publish (push) Successful in 31s
2024-02-10 07:51:16 +00:00
erichardson 14ec31d1cc Update .gitea/workflows/semantic-release.yaml
Semantic Release and Changelog / Patch (push) Successful in 7s
Semantic Release and Changelog / Build and Publish (push) Successful in 17s
2024-02-08 06:04:58 +00:00
erichardson 42be3b4f0c Update .gitea/workflows/publish.yaml
Semantic Release and Changelog / Patch (push) Successful in 22s
Semantic Release and Changelog / Build and Publish (push) Failing after 1m27s
2024-02-08 03:45:45 +00:00
erichardson e70036617a Merge pull request 'chore(deps): update dependency actions/checkout to v4.1.1' (#45) from renovate/actions-checkout-4.x into master
Semantic Release and Changelog / Patch (push) Successful in 11s
Semantic Release and Changelog / Build and Publish (push) Failing after 48s
Reviewed-on: #45
2024-02-06 07:08:07 +00:00
renovate 78c9ae57b4 chore(deps): update dependency actions/checkout to v4.1.1
Build and publish Image / build-and-push (push) Successful in 47s
2024-02-04 22:01:36 +00:00
erichardson 154ccb0c91 Merge pull request 'chore(deps): update actions/checkout action to v4' (#44) from renovate/actions-checkout-4.x into master
Semantic Release and Changelog / Patch (push) Successful in 5s
Semantic Release and Changelog / Build and Publish (push) Failing after 42s
Reviewed-on: #44
Reviewed-by: Evan Richardson <evanrich81@gmail.com>
2024-02-04 21:41:55 +00:00
renovate 60249b9c1e chore(deps): update actions/checkout action to v4
Build and publish Image / build-and-push (push) Successful in 47s
2024-02-04 21:36:01 +00:00
6 changed files with 25 additions and 20 deletions
+1 -4
View File
@@ -14,10 +14,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Docker
run: curl -fsSL https://get.docker.com | sh
uses: actions/checkout@v4.1.1
- name: Build Docker image
run: docker build -t harbor.evanshome.io/library/py-eagle-mqtt:dev ./Docker/
+9 -7
View File
@@ -10,7 +10,7 @@ jobs:
name: Patch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4.1.1
with:
fetch-depth: '0'
- name: Minor version for each merge
@@ -36,10 +36,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4.1.1
- name: Install Docker
run: curl -fsSL https://get.docker.com | sh
- 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/
@@ -50,12 +54,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.REPO_PUSH_TOKEN }}
WITH_V: true
GIT_API_TAGGING: false
- 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
+1 -1
View File
@@ -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:
+11 -5
View File
@@ -14,14 +14,20 @@ LABEL org.label-schema.vendor="Evan Richardson"
LABEL org.label-schema.docker.cmd="docker run --name=py-eagle-mqtt -e MQTT_BROKER_IP=<IP> -e MQTT_BROKER_PORT=1883 -p 22042:22042 -d evanrich/py-eagle-mqtt"
WORKDIR /app
COPY requirements.txt /app
COPY ./src/conf/logrotate/tHome /etc/logrotate.d/
ENV PYTHONPATH=/app/src/python
RUN apk --update add --no-cache logrotate \
&& apk upgrade \
&& pip3 install --no-cache-dir --upgrade pip \
&& pip3 install --no-cache-dir -r requirements.txt
RUN apk --update add --no-cache logrotate && \
apk upgrade && \
pip3 install --no-cache-dir --upgrade pip && \
pip3 install --no-cache-dir -r requirements.txt && \
rm -rf /var/cache/apk/*
COPY . /app
CMD ["/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 -1
View File
@@ -1,3 +1,3 @@
paho-mqtt==1.6.1
paho-mqtt~=2.0.0
bottle==0.12.25
defusedxml==0.7.1
+2 -2
View File
@@ -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()