ci: run hassfest safely with dind runner
This commit is contained in:
@@ -16,4 +16,13 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Hassfest validation
|
||||
uses: https://github.com/home-assistant/actions/hassfest@master
|
||||
run: |
|
||||
hassfest_container="$(
|
||||
docker create \
|
||||
ghcr.io/home-assistant/hassfest \
|
||||
--core-path=/usr/src/homeassistant \
|
||||
--integration-path=/github/workspace/custom_components/relaytv
|
||||
)"
|
||||
trap 'docker rm --force "$hassfest_container" >/dev/null' EXIT
|
||||
docker cp custom_components "$hassfest_container:/github/workspace/"
|
||||
docker start --attach "$hassfest_container"
|
||||
|
||||
Reference in New Issue
Block a user