Skip to content

Commit

Permalink
fix: ディレクトリ変更
Browse files Browse the repository at this point in the history
デフォルトのワーキングディレクトリに変える
renovateイメージの/tmpに元々存在するファイルとのパーミッション衝突を避ける
  • Loading branch information
mikutas committed Dec 9, 2024
1 parent b5c318a commit b5dff4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .config/fish/aliases.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .config/zsh/aliases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b5dff4e

Please sign in to comment.