diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f1cc7ee..3c92a47 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} diff --git a/Dockerfile b/Dockerfile index fcc48c5..aaa20b3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ @@ -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"]