Skip to content

Commit

Permalink
chore: fix release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Hartorn authored and Optimox committed Jun 27, 2022
1 parent fd2c73a commit 464c54c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.7-slim-buster@sha256:2053d75b458798a56bfa84b0fb58e54938fcb3db236b26dbc0f5748d38dbba58
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
ENV SHELL /bin/bash -l
Expand Down
5 changes: 2 additions & 3 deletions release-script/Dockerfile_changelog
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
FROM node:10.16.0-alpine@sha256:07897ec27318d8e43cfc6b1762e7a28ed01479ba4927aca0cdff53c1de9ea6fd
FROM node:lts-alpine@sha256:c785e617c8d7015190c0d41af52cc69be8a16e3d9eb7cb21f0bb58bcfca14d6b

RUN apk add git

RUN npm i -g conventional-changelog-cli
RUN npm i -g [email protected]
RUN npm i -g [email protected] conventional-changelog-cli

7 changes: 4 additions & 3 deletions release-script/prepare-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ git add pyproject.toml docs/
git commit -m "chore: release v${version}"
# Create tag for changelog generation
git tag v${version}
docker run -v ${PWD}:/work -w /work --entrypoint "" release-changelog:latest conventional-changelog -p angular -i CHANGELOG.md -s -r 0
docker run -v ${PWD}:/work -w /work --entrypoint "" release-changelog:latest chmod 777 CHANGELOG.md
docker run -v ${PWD}:/work -w /work --entrypoint "" release-changelog:latest git config --global --add safe.directory /work &&\
conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && \
chmod 777 CHANGELOG.md
# Removing 4 first line of the file
echo "$(tail -n +4 CHANGELOG.md)" > CHANGELOG.md
# Deleting tag
# Deleting tag
git tag -d v${version}
# Adding CHANGELOG to commit
git add CHANGELOG.md
Expand Down

0 comments on commit 464c54c

Please sign in to comment.