From c67c49f57d43f0b027b7811643b8386d6fbe20e6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 13 Dec 2025 02:03:52 +0000 Subject: [PATCH] Fix Debian 13 compatibility: Update Alpine base, fix shell script, update GitHub Actions Co-authored-by: ShaYmez <76499782+ShaYmez@users.noreply.github.com> --- .github/workflows/image.yml | 11 ++++++----- Dockerfile | 2 +- docker-compose.yml | 2 +- entrypoint | 4 ++-- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index cb0282b..3307f55 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -9,14 +9,15 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: install buildx id: buildx - uses: crazy-max/ghaction-docker-buildx@v1 - with: - version: latest + uses: docker/setup-buildx-action@v3 - name: login to docker hub - run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} - name: build the image run: | docker buildx build --push \ diff --git a/Dockerfile b/Dockerfile index 67713a2..0a6008d 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:alpine3.18 +FROM python:alpine3.20 COPY entrypoint /entrypoint diff --git a/docker-compose.yml b/docker-compose.yml index 7fa14df..7ca788f 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: '2.4' +version: '3.8' services: hblink3: container_name: hblink diff --git a/entrypoint b/entrypoint index c6b1bf3..75b49bb 100755 --- a/entrypoint +++ b/entrypoint @@ -1,7 +1,7 @@ #!/bin/sh -cd /opt/hblink3 +cd /opt/hblink3 || exit -if [ "$PARROT_ENABLE" == 1 ] +if [ "$PARROT_ENABLE" = 1 ] then echo 'Starting HBlink with Parrot.....' python /opt/hblink3/bridge.py -c hblink.cfg -r rules.py &