From 11024b9f9327e9d6202e658fd5529cb6ff25b70a Mon Sep 17 00:00:00 2001 From: Optimox Date: Wed, 14 Sep 2022 18:47:00 +0200 Subject: [PATCH] chore: update release script --- .circleci/config.yml | 4 ++-- Dockerfile | 6 +++--- release-script/do-release.sh | 5 +++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3d1dfca9..11fc0131 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -32,8 +32,8 @@ commands: name: Install prerequisites and poetry command: | apt update && apt install curl make git libopenblas-base build-essential -y - curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python - source $HOME/.poetry/env + curl -sSL https://install.python-poetry.org | python3 - + export PATH="/root/.local/bin:$PATH" poetry config virtualenvs.path $POETRY_CACHE poetry run pip install --upgrade --no-cache-dir pip==20.1; diff --git a/Dockerfile b/Dockerfile index fe188a30..0c86c92d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM python:3.7-slim-buster@sha256:50de4af76270c893fe36a9ae428951057d6e1a681312d11861970baa150a62e2 RUN apt update && apt install curl make git libopenblas-base -y -RUN curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python +RUN curl -sSL https://install.python-poetry.org | python3 - ENV SHELL /bin/bash -l ENV POETRY_CACHE /work/.cache/poetry @@ -8,8 +8,8 @@ ENV PIP_CACHE_DIR /work/.cache/pip ENV JUPYTER_RUNTIME_DIR /work/.cache/jupyter/runtime ENV JUPYTER_CONFIG_DIR /work/.cache/jupyter/config -RUN $HOME/.poetry/bin/poetry config virtualenvs.path $POETRY_CACHE +RUN /root/.local/bin/poetry config virtualenvs.path $POETRY_CACHE -ENV PATH ${PATH}:/root/.poetry/bin:/bin:/usr/local/bin:/usr/bin +ENV PATH ${PATH}:/root/.local/bin:/bin:/usr/local/bin:/usr/bin CMD ["bash", "-l"] diff --git a/release-script/do-release.sh b/release-script/do-release.sh index 21319ffa..d0c06203 100755 --- a/release-script/do-release.sh +++ b/release-script/do-release.sh @@ -43,8 +43,9 @@ git push origin master echo "Pushing tag" git push origin --tags -echo "Making github release" -docker run -v ${PWD}:/work -w /work --entrypoint "" release-changelog:latest conventional-github-releaser -p angular --token ${token} +# This created an error : you should do the release by hand on github +# echo "Making github release" +# docker run -v ${PWD}:/work -w /work --entrypoint "" release-changelog:latest sh -c "git config --global --add safe.directory /work && conventional-github-releaser -p angular --token ${token}" # Build release echo "Building latest build"