Skip to content
Snippets Groups Projects
Commit 11282d69 authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

>_<

parent 47899a4c
No related branches found
No related tags found
No related merge requests found
FROM k8s.gcr.io/git-sync/git-sync:v3.3.5
ENV GIT_SYNC_ROOT='/tmp/git' GIT_SYNC_DEST='config' GIT_SYNC_EXECHOOK_COMMAND='/ha-rsync' GIT_SYNC_ADD_USER='true'
USER root:root
RUN set -ex \
&& apt update -y \
&& apt install -y rsync \
&& apt clean \
&& rm -rf /var/lib/apt/lists/* \
&& chmod -Rv 0777 "${GIT_SYNC_ROOT:-/tmp/git}/"
COPY ha-rsync* /
RUN set -ex \
&& chmod a+x /ha-rsync
VOLUME ["/config"]
USER git-sync:git-sync
#!/usr/bin/env sh
rsync -a \
--exclude-from='/ha-rsync.excludes' \
--delete-after \
"${GIT_SYNC_ROOT:-/tmp/git}/${GIT_SYNC_DEST:-config}/" \
/config
/.git
/.gitignore
/README.md
/deps
/image
/tts
.HA_VERSION
/.cloud/*
/.storage/*
/automations.yaml
/scenes.yaml
/scripts.yaml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment