mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-17 10:29:00 +02:00
Update testing-docker-image.yml
This commit is contained in:
57
.github/workflows/testing-docker-image.yml
vendored
57
.github/workflows/testing-docker-image.yml
vendored
@@ -10,47 +10,24 @@ jobs:
|
||||
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
|
||||
|
||||
- name: Send email
|
||||
uses: devellany/send-mail@v1.0.2
|
||||
with:
|
||||
host: mail.buanet.de
|
||||
account: ${{secrets.MAIL_USER}}
|
||||
password: ${{secrets.MAIL_PASS}}
|
||||
sender: Notify
|
||||
from: noreply@buanet.de
|
||||
to: andre@buanet.de
|
||||
subject: GitHub Actions - ioBroker.Docker - Testing Docker image
|
||||
body: Test
|
||||
contentType: text/html
|
||||
attachments: file://testrun.log
|
||||
|
||||
# - name: Send notification
|
||||
# uses: dawidd6/action-send-mail@v3
|
||||
# with:
|
||||
# # Required mail server address:
|
||||
# server_address: mail.buanet.de
|
||||
# # Required mail server port:
|
||||
# server_port: 465
|
||||
# # Optional (recommended): mail server username:
|
||||
# username: ${{secrets.MAIL_USER}}
|
||||
# # Optional (recommended) mail server password:
|
||||
# password: ${{secrets.MAIL_PASS}}
|
||||
# # Required mail subject:
|
||||
# subject: \[GitHub Actions\] ioBroker.Docker - Testing Docker image
|
||||
# # Required recipients' addresses:
|
||||
# to: andre@buanet.de
|
||||
# # Required sender full name (address can be skipped):
|
||||
# from: GitHub Actions Notification <noreply@buanet.de>
|
||||
# # Optional whether this connection use TLS (default is true if server_port is 465)
|
||||
# secure: true
|
||||
# # Optional plain body:
|
||||
# body: Job completed successfully!
|
||||
# # Optional unsigned/invalid certificates allowance:
|
||||
# ignore_cert: true
|
||||
# # Optional attachments:
|
||||
# attachments: testrun.log
|
||||
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