mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-24 05:35:32 +02:00
Merge branch 'main' of https://github.com/buanet/ioBroker.docker
This commit is contained in:
2
.github/dependencies/.js-controller-version
vendored
2
.github/dependencies/.js-controller-version
vendored
@@ -1 +1 @@
|
||||
v3.3.22
|
||||
3.3.22
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
33
.github/workflows/testing-docker-image.yml
vendored
Normal file
33
.github/workflows/testing-docker-image.yml
vendored
Normal 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 ' '
|
||||
Reference in New Issue
Block a user