Skip to content

Commit

Permalink
chore: update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
Optimox committed Sep 14, 2022
1 parent 4fa545d commit 11024b9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
@@ -1,15 +1,15 @@
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
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"]
5 changes: 3 additions & 2 deletions release-script/do-release.sh
Expand Up @@ -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"
Expand Down

0 comments on commit 11024b9

Please sign in to comment.