Skip to content

Commit c26179a

Browse files
committed
ci(pip): externalize dependencies
1 parent caee496 commit c26179a

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ updates:
77
interval: "daily"
88
commit-message:
99
prefix: chore(deps)
10+
- package-ecosystem: "pip"
11+
directory: "/md"
12+
schedule:
13+
interval: "daily"
14+
cooldown:
15+
default-days: 7
16+
commit-message:
17+
prefix: build(deps)
1018
- package-ecosystem: "github-actions"
1119
directory: "/"
1220
schedule:

md/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ RUN apk upgrade --no-cache \
3232
&& apk cache --no-cache clean \
3333
&& rm -rf /var/cache/apk/*
3434

35+
COPY requirements.txt /tmp/requirements.txt
36+
3537
RUN pipx ensurepath --global \
36-
&& pipx install --global \
37-
mdformat==1.0.0
38+
&& xargs -a /tmp/requirements.txt -n 1 pipx install --global \
39+
&& rm -f /tmp/requirements.txt
3840

3941
RUN npm install -g \
4042

md/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mdformat==1.0.0

0 commit comments

Comments
 (0)