This commit is contained in:
buanet
2022-02-11 15:02:59 +01:00
3 changed files with 40 additions and 4 deletions

View File

@@ -1 +1 @@
v3.3.22
3.3.22

View File

@@ -17,8 +17,11 @@ jobs:
- name: Fetch js-controller release version
run: |
curl -sL https://api.github.com/repos/ioBroker/ioBroker.js-controller/releases/latest | \
jq -r ".tag_name" > .github/dependencies/.js-controller-version
curl -sL https://repo.iobroker.live/sources-dist.json | \
jq -r '."js-controller".version' > .github/dependencies/.js-controller-version
# curl -sL https://api.github.com/repos/ioBroker/ioBroker.js-controller/releases/latest | \
# jq -r ".tag_name" > .github/dependencies/.js-controller-version
echo "[LOG] Fetched js-controller version is $(cat .github/dependencies/.js-controller-version)"
- name: Check for modified files
id: git-check
@@ -46,4 +49,4 @@ jobs:
with:
workflow: Build debian latest (iobroker)
repo: buanet/ioBroker.docker
token: ${{ secrets.ACTIONS_PAT }}
token: ${{ secrets.ACTIONS_PAT }}

View File

@@ -0,0 +1,33 @@
# Github action for testing the Docker image
name: Testing Docker image
on:
workflow_dispatch:
jobs:
test-docker-image:
runs-on: ubuntu-latest
steps:
- name: Testing with docker run
run: |
echo "[LOG] Starting ioBroker Container..."
docker run -d -p 8081:8081 --name iobroker -v iobrokerdata:/opt/iobroker buanet/iobroker:latest
echo "[LOG] Done."
echo ' '
echo "[LOG] Waiting for Startup Script..."
sleep 30
echo "[LOG] Done."
echo ' '
echo "[LOG] Writing Logs..."
docker logs iobroker >& testrun.log
echo "[LOG] Done."
echo ' '
echo "[LOG] Checking Web UI..."
curl --insecure http://127.0.0.1:8081 2> /dev/null | grep '<title>Admin</title>' &> /dev/null || exit 1
echo "[LOG] Done."
echo ' '
echo "[LOG] Output testrun.log:"
cat testrun.log
echo ' '
echo "[LOG] Test sucesssful."
echo ' '