From f33aceac0572241bf40c06bc3323832f95b41fb8 Mon Sep 17 00:00:00 2001 From: Aaron Date: Tue, 19 Nov 2019 06:34:18 -0700 Subject: [PATCH] update ci to pass in versions --- .github/workflows/ci.yml | 12 +++++------- Dockerfile | 8 ++++---- 2 files changed, 9 insertions(+), 11 deletions(-) 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"]