Skip to content

Commit

Permalink
update ci to pass in versions
Browse files Browse the repository at this point in the history
  • Loading branch information
abatilo committed Nov 19, 2019
1 parent fa18c54 commit f33acea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Build image
run: |
docker build -t actions-poetry .
- name: Print ref
run: |
echo $GITHUB_REF
env
- name: Run image
uses: ./
with:
python_version: 3.8.0
poetry_version: 0.12.17
- name: Generate release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM python:slim-buster

ENV PYENV_HOME=/root/.pyenv
ENV PATH $PYENV_HOME/shims:$PYENV_HOME/bin:$PATH
ENV PYENV_ROOT=/root/.pyenv
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
Expand All @@ -27,8 +27,8 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*

# Install pyenv, then install python versions
RUN git clone --depth 1 https://github.com/pyenv/pyenv.git $PYENV_HOME && \
rm -rfv $PYENV_HOME/.git
RUN git clone --depth 1 https://github.com/pyenv/pyenv.git $PYENV_ROOT && \
rm -rfv $PYENV_ROOT/.git

COPY requirements.txt entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]

0 comments on commit f33acea

Please sign in to comment.