Compare commits
1 Commits
c168220823
...
48fb9ef247
Author | SHA1 | Date | |
---|---|---|---|
48fb9ef247 |
|
@ -8,7 +8,7 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
name: Build automation_rs
|
||||
name: Build
|
||||
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: Build Docker image
|
||||
name: Create container
|
||||
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 and push Docker image
|
||||
- name: Build & Push Docker Image
|
||||
uses: https://github.com/docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
|
@ -87,13 +87,14 @@ jobs:
|
|||
--pull always \
|
||||
--restart unless-stopped \
|
||||
--name automation_rs \
|
||||
--network mqtt
|
||||
-e TZ=Europe/Amsterdam \
|
||||
-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
|
||||
|
|
Loading…
Reference in New Issue
Block a user