Compare commits

..

2 Commits

Author SHA1 Message Date
c168220823
Improvement: Job names could be better
Some checks failed
Build and deploy automation_rs / Build automation_rs (push) Successful in 6m10s
Build and deploy automation_rs / Build Docker image (push) Successful in 1m11s
Build and deploy automation_rs / Deploy Docker container (push) Failing after 34s
2023-11-23 23:06:54 +01:00
b4427f2140
Fix: Wake On LAN is not working
The docker container needs to be created with the network option set to
one of the networks otherwise it will not work.
2023-11-23 23:04:26 +01:00

View File

@ -8,7 +8,7 @@ on:
jobs:
build:
name: Build
name: Build automation_rs
runs-on: ubuntu-latest
container: catthehacker/ubuntu:act-latest
steps:
@ -36,7 +36,7 @@ jobs:
path: target/x86_64-unknown-linux-gnu/release/automation
container:
name: Create container
name: Build Docker image
runs-on: ubuntu-latest
needs: [build]
container: catthehacker/ubuntu:act-latest
@ -61,7 +61,7 @@ jobs:
username: ${{ gitea.actor }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build & Push Docker Image
- name: Build and push Docker image
uses: https://github.com/docker/build-push-action@v5
with:
context: .
@ -87,14 +87,13 @@ jobs:
--pull always \
--restart unless-stopped \
--name automation_rs \
-e TZ=Europe/Amsterdam \
--network mqtt
-e RUST_LOG=automation=debug \
-e MQTT_PASSWORD=${{ secrets.MQTT_PASSWORD }} \
-e HUE_TOKEN=${{ secrets.HUE_TOKEN }} \
-e NTFY_TOPIC=${{ secrets.NTFY_TOPIC }} \
git.huizinga.dev/dreaded_x/automation_rs:latest
docker network connect mqtt automation_rs
docker network connect web automation_rs
- name: Start container