Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
594a42320f | ||
|
|
2886e5c1ca | ||
|
|
9ba2544237 | ||
|
|
0ccdc6fe11 | ||
|
|
ed38b86eb6 | ||
|
|
9d3d44f36b | ||
|
|
8cb2cc2327 | ||
|
|
4d4961e842 | ||
|
|
781becf0d0 | ||
|
|
65623b45a2 | ||
|
|
4af6eac710 |
10
.github/workflows/publish.yml
vendored
10
.github/workflows/publish.yml
vendored
@@ -12,9 +12,9 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@v2.3.5
|
||||||
- name: Bump version
|
- name: Bump version
|
||||||
uses: remorses/bump-version@js
|
uses: chamini2/bump-version@js
|
||||||
id: version
|
id: version
|
||||||
with:
|
with:
|
||||||
version_file: ./VERSION
|
version_file: ./VERSION
|
||||||
@@ -22,7 +22,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@v2.3.5
|
||||||
with:
|
with:
|
||||||
ref: main
|
ref: main
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
@@ -30,14 +30,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
|
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1.5.1
|
uses: docker/setup-buildx-action@v1.6.0
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1.10.0
|
uses: docker/login-action@v1.10.0
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v2.6.1
|
uses: docker/build-push-action@v2.7.0
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
amcrest==1.9.3
|
amcrest==1.9.3
|
||||||
paho-mqtt==1.5.1
|
paho-mqtt==1.6.1
|
||||||
python-slugify==5.0.2
|
python-slugify==5.0.2
|
||||||
|
|||||||
@@ -149,7 +149,12 @@ try:
|
|||||||
is_ad110 = device_type == "AD110"
|
is_ad110 = device_type == "AD110"
|
||||||
is_ad410 = device_type == "AD410"
|
is_ad410 = device_type == "AD410"
|
||||||
is_doorbell = is_ad110 or is_ad410
|
is_doorbell = is_ad110 or is_ad410
|
||||||
serial_number = camera.serial_number.strip()
|
serial_number = camera.serial_number
|
||||||
|
|
||||||
|
if not isinstance(serial_number, str):
|
||||||
|
log(f"Error fetching serial number", level="ERROR")
|
||||||
|
exit_gracefully(1)
|
||||||
|
|
||||||
sw_version = camera.software_information[0].replace("version=", "").strip()
|
sw_version = camera.software_information[0].replace("version=", "").strip()
|
||||||
device_name = camera.machine_name.replace("name=", "").strip()
|
device_name = camera.machine_name.replace("name=", "").strip()
|
||||||
device_slug = slugify(device_name, separator="_")
|
device_slug = slugify(device_name, separator="_")
|
||||||
|
|||||||
Reference in New Issue
Block a user