From b5dff4ea60fdd6bccff5f2c9f3f37846ebe38496 Mon Sep 17 00:00:00 2001 From: mikutas <23391543+mikutas@users.noreply.github.com> Date: Mon, 9 Dec 2024 17:18:02 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=83=87=E3=82=A3=E3=83=AC=E3=82=AF?= =?UTF-8?q?=E3=83=88=E3=83=AA=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit デフォルトのワーキングディレクトリに変える renovateイメージの/tmpに元々存在するファイルとのパーミッション衝突を避ける --- .config/fish/aliases.fish | 6 +++--- .config/zsh/aliases.zsh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.config/fish/aliases.fish b/.config/fish/aliases.fish index c8f7c059..1bebebd8 100644 --- a/.config/fish/aliases.fish +++ b/.config/fish/aliases.fish @@ -198,15 +198,15 @@ end # Renovate function renovate if ls ./.envrc - docker run --rm -it -v (pwd):/tmp renovate/renovate:39.57.2 sh -c "curl -sfL https://direnv.net/install.sh | bash && cd /tmp && direnv allow . && direnv exec . renovate $argv" + docker run --rm -it -v (pwd):/usr/src/app renovate/renovate:39.57.2 sh -c "curl -sfL https://direnv.net/install.sh | bash && direnv allow . && direnv exec . renovate $argv" else - docker run --rm -it -v (pwd):/tmp renovate/renovate:39.57.2 sh -c "renovate $argv" + docker run --rm -it -v (pwd):/usr/src/app renovate/renovate:39.57.2 sh -c "renovate $argv" end rm -rf renovate/ end function renovate-config-validator - docker run --rm -it -v (pwd):/tmp renovate/renovate:39.57.2 sh -c "cd /tmp && renovate-config-validator" + docker run --rm -it -v (pwd):/usr/src/app renovate/renovate:39.57.2 sh -c "renovate-config-validator" end # todoist diff --git a/.config/zsh/aliases.zsh b/.config/zsh/aliases.zsh index bcaa79f2..0ec97441 100644 --- a/.config/zsh/aliases.zsh +++ b/.config/zsh/aliases.zsh @@ -116,11 +116,11 @@ function l5d-setup() { function renovate() { set -x args=$@ - docker run --rm -it -v $(pwd):/tmp renovate/renovate:39.57.2 sh -c "git config --global --add safe.directory /tmp/renovate/repos/github/$1 && curl -sfL https://direnv.net/install.sh | bash && cd /tmp && direnv allow . && direnv exec . renovate $args" + docker run --rm -it -v $(pwd):/usr/src/app renovate/renovate:39.57.2 sh -c "git config --global --add safe.directory /usr/src/app/renovate/repos/github/$1 && curl -sfL https://direnv.net/install.sh | bash && direnv allow . && direnv exec . renovate $args" } function renovate-config-validator() { - docker run --rm -it -v $(pwd):/tmp renovate/renovate:39.57.2 sh -c "cd /tmp && renovate-config-validator" + docker run --rm -it -v $(pwd):/usr/src/app renovate/renovate:39.57.2 sh -c "renovate-config-validator" } # Terraform