File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 13
13
id : image_tags
14
14
run : |
15
15
echo -n ::set-output name=IMAGE_TAGS::${GITHUB_REF#refs/*/}
16
+ - name : record schema-salad version
17
+ run : pip install setuptools_scm[toml] && python -m setuptools_scm
16
18
- name : Set up Docker Buildx
17
19
uses : docker/setup-buildx-action@v2
18
20
- name : Login to Quay.io
Original file line number Diff line number Diff line change 1
- FROM python:3.9- alpine as builder
1
+ FROM alpine:latest as builder
2
2
3
3
RUN apk add --no-cache git gcc python3-dev libc-dev
4
-
5
4
WORKDIR /schema_salad
6
5
COPY . .
7
6
8
- RUN pip install toml -rmypy-requirements.txt "$(grep ruamel requirements.txt)"
9
- RUN SCHEMA_SALAD_USE_MYPYC=1 MYPYPATH=mypy-stubs python3 setup.py bdist_wheel --dist-dir=/wheels
10
- RUN pip wheel -r requirements.txt --wheel-dir=/wheels
11
- RUN pip install --force-reinstall --no-index --no-warn-script-location --root=/pythonroot/ /wheels/*.whl
7
+ RUN python3 -m venv env3
8
+ RUN source env3/bin/activate && python3 -m pip install -U pip setuptools wheel build
9
+ RUN export SETUPTOOLS_SCM_PRETEND_VERSION=$(grep __version__ schema_salad/_version.py | awk -F\' '{ print $2 }' ) ; source env3/bin/activate && SCHEMA_SALAD_USE_MYPYC=1 MYPYPATH=mypy-stubs python3 -m build --wheel --outdir=/wheels
10
+ RUN source env3/bin/activate && python3 -m pip wheel -r requirements.txt --wheel-dir=/wheels
11
+ RUN source env3/bin/activate && python3 -m pip install --force-reinstall --no-index --no-warn-script-location --root=/pythonroot/ /wheels/*.whl
12
12
13
- FROM python:3.9- alpine as module
13
+ FROM alpine:latest as module
14
14
LABEL maintainer
[email protected]
15
15
16
+ RUN apk add --no-cache py3-six
17
+
16
18
COPY --from=builder /pythonroot/ /
You can’t perform that action at this time.
0 commit comments