forked from python-semantic-release/python-semantic-release
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (17 loc) · 696 Bytes
/
Dockerfile
File metadata and controls
24 lines (17 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This Dockerfile is only for GitHub Actions
FROM python:3.9
RUN set -ex; \
apt-get update; \
apt-get install -y --no-install-recommends \
git-lfs
#install backported stable vesion of git, which supports ssh signing
RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list; \
apt-get update;\
apt-get install -y git/bullseye-backports
ENV PYTHONPATH /semantic-release
COPY . /semantic-release
RUN cd /semantic-release && \
python -m venv /semantic-release/.venv && \
/semantic-release/.venv/bin/pip install .
RUN /semantic-release/.venv/bin/python -m semantic_release.cli --help
ENTRYPOINT ["/semantic-release/action.sh"]