File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ ENV USER=cod3rocket
2020ENV HOME=/home/$USER
2121ENV PATH="$PATH:$HOME/.local/bin:$HOME/.local/share/mise/shims"
2222
23- RUN dnf install -y curl ca-certificates tar freetype dejavu-sans-fonts fontconfig \
23+ RUN dnf install -y curl ca-certificates tar freetype dejavu-sans-fonts fontconfig git \
2424 && dnf clean all \
2525 && rm -rf /var/cache/yum \
2626 && useradd -m -s /bin/bash $USER
@@ -37,10 +37,10 @@ COPY mise.toml /etc/mise/config.toml
3737
3838RUN mise trust && mise install --yes && mise reshim
3939
40- COPY --chown=$USER:$USER package.json bun.lock entrypoint .ts /opt/cod3rocket/pre-commit-hooks/
40+ COPY --chown=$USER:$USER package.json bun.lock main .ts entrypoint.sh /opt/cod3rocket/pre-commit-hooks/
4141
4242WORKDIR /opt/cod3rocket/pre-commit-hooks
4343
4444RUN bun i
4545
46- ENTRYPOINT [ "bun" , "run" , " entrypoint.ts " ]
46+ ENTRYPOINT [ "/opt/cod3rocket/pre-commit-hooks/ entrypoint.sh " ]
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ paths=(" $@ " )
4+ novo_paths=()
5+
6+ for path in " ${paths[@]} " ; do
7+ novo_paths+=(" /src/$path " )
8+ done
9+
10+ echo " Executa os hooks"
11+ cd /opt/cod3rocket/pre-commit-hooks/
12+ bun run main.ts " ${novo_paths[@]} "
File renamed without changes.
Original file line number Diff line number Diff line change 11{
22 "name" : " pre-commit-hooks" ,
33 "version" : " 1.0.1" ,
4- "module" : " entrypoint .ts" ,
4+ "module" : " main .ts" ,
55 "type" : " module" ,
66 "private" : true ,
77 "devDependencies" : {
You can’t perform that action at this time.
0 commit comments