From a674674140b966685672141c9f76c50bddf89473 Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Sun, 13 Nov 2022 10:46:15 -0800 Subject: [PATCH] copy examples to container --- .github/workflows/package.yaml | 3 +++ docker/root/etc/cont-init.d/30-config | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/package.yaml b/.github/workflows/package.yaml index f514690c..b5f931ad 100644 --- a/.github/workflows/package.yaml +++ b/.github/workflows/package.yaml @@ -38,9 +38,12 @@ jobs: - name: Build Wheel run: | + # Build wheel and copy to docker dir pip install -e .[build] python setup.py bdist_wheel cp dist/*.whl docker/root + # Copy examples to docker defaults dir + cp -R examples docker/root/defaults/ - name: Save Python build cache uses: actions/cache@v3 diff --git a/docker/root/etc/cont-init.d/30-config b/docker/root/etc/cont-init.d/30-config index cc58f75d..9fd18e67 100644 --- a/docker/root/etc/cont-init.d/30-config +++ b/docker/root/etc/cont-init.d/30-config @@ -5,6 +5,8 @@ cp /defaults/config.yaml /config/config.yaml [[ ! -e /config/subscriptions.yaml ]] && \ cp /defaults/subscriptions.yaml /config/subscriptions.yaml +[[ ! -d /config/examples ]] && \ + cp -R /defaults/examples /config/ # permissions chown -R abc:abc \