Skip to content

Commit f1dcc8e

Browse files
committed
ci(pip): externalize dependencies
1 parent 60660c4 commit f1dcc8e

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
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: build(deps)
10+
- package-ecosystem: "pip"
11+
directory: "/yaml"
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:

yaml/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,11 @@ RUN apk upgrade --no-cache \
2828
&& apk cache --no-cache clean \
2929
&& rm -rf /var/cache/apk/*
3030

31+
COPY requirements.txt /tmp/requirements.txt
32+
3133
RUN pipx ensurepath --global \
32-
&& pipx install --global \
33-
jsonfmt==0.2.7 \
34-
remarshal==1.2.0 \
35-
yamllint==1.37.1 \
36-
yamlpath==3.8.2
34+
&& xargs -a /tmp/requirements.txt -n 1 pipx install --global \
35+
&& rm -f /tmp/requirements.txt
3736

3837
RUN npm install -g \
3938
prettier@3.6.2 \

yaml/requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
jsonfmt==0.2.7
2+
remarshal==1.2.0
3+
yamllint==1.37.1
4+
yamlpath==3.8.2

0 commit comments

Comments
 (0)