File tree 4 files changed +789
-774
lines changed
4 files changed +789
-774
lines changed Original file line number Diff line number Diff line change @@ -80,13 +80,14 @@ jobs:
80
80
- name : Sign the container image
81
81
if : github.ref == 'refs/heads/main'
82
82
run : cosign sign --yes ${{ steps.imgdigest.outputs.digest }}
83
- - name : " Setup Python, Poetry and Dependencies"
83
+ - name : Install utilities using mise
84
+ uses : jdx/mise-action@v2
84
85
if : github.ref == 'refs/heads/main'
85
- uses : packetcoders/action-setup-cache-python-poetry@main
86
86
with :
87
- python-version : 3.9
88
- poetry-version : 1.5.1
89
- install-args : --only=sbom-tools
87
+ install_args : python poetry
88
+ - name : Install SBOM tools
89
+ run : poetry install --only=sbom-tools
90
+ if : github.ref == 'refs/heads/main'
90
91
- name : Create SBOM
91
92
if : github.ref == 'refs/heads/main'
92
93
run : |
Original file line number Diff line number Diff line change @@ -5,8 +5,22 @@ WORKDIR /app
5
5
ARG EARTHLY_GIT_PROJECT_NAME
6
6
ARG --global CACHE_BASE= ghcr.io/$EARTHLY_GIT_PROJECT_NAME
7
7
8
+ INSTALL_MISE :
9
+ FUNCTION
10
+ ENV MISE_DATA_DIR= "/mise"
11
+ ENV MISE_CONFIG_DIR= "/mise"
12
+ ENV MISE_CACHE_DIR= "/mise/cache"
13
+ ENV MISE_INSTALL_PATH= "/usr/local/bin/mise"
14
+ ENV PATH= "/mise/shims:$PATH"
15
+
16
+ COPY mise.toml .
17
+ RUN curl https://mise.run | sh && \
18
+ mise trust /app/mise.toml
19
+
20
+
8
21
build :
9
- RUN pip install poetry
22
+ DO +INSTALL_MISE
23
+ RUN mise install poetry
10
24
ENV POETRY_VIRTUALENVS_IN_PROJECT= true
11
25
12
26
COPY pyproject.toml poetry.lock .
30
44
31
45
integration-tests :
32
46
DO github.com/earthly/lib+INSTALL_DIND
33
- RUN pip install poetry
47
+ DO +INSTALL_MISE
48
+ RUN mise install poetry
34
49
ENV POETRY_VIRTUALENVS_IN_PROJECT= true
35
50
COPY --dir +build/.venv .
36
51
COPY --dir +build/dataproduct_apps .
Original file line number Diff line number Diff line change 1
1
[tools ]
2
2
earthly = " latest"
3
- poetry = " 2.0 .1"
3
+ poetry = " 2.1 .1"
4
4
python = " 3.9"
You can’t perform that action at this time.
0 commit comments