From bdedb4ed2b206a5b8c2d79629175ede54a3d350a Mon Sep 17 00:00:00 2001 From: Shohei Ueda <30958501+peaceiris@users.noreply.github.com> Date: Tue, 24 Dec 2019 15:02:00 +0900 Subject: [PATCH] feat: ignore .git and .github (#63) * feat: ignore .git and .github Close #57 * feat: update alpine to 3.11.0 cf. #64 --- Dockerfile | 2 +- entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b666dc7..6c78d99 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.10.3 +FROM alpine:3.11.0 RUN apk add --no-cache \ bash \ diff --git a/entrypoint.sh b/entrypoint.sh index 9608097..b4d9d59 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -92,7 +92,7 @@ elif git clone --depth=1 --single-branch --branch "${remote_branch}" "${remote_r git rm -r --ignore-unmatch '*' fi - find "${GITHUB_WORKSPACE}/${PUBLISH_DIR}" -maxdepth 1 | \ + find "${GITHUB_WORKSPACE}/${PUBLISH_DIR}" -maxdepth 1 -not -name ".git" -not -name ".github" | \ tail -n +2 | \ xargs -I % cp -rf % "${local_dir}/" else