Skip to content
This repository was archived by the owner on Mar 6, 2023. It is now read-only.

Commit 31b6eb0

Browse files
authored
Merge pull request #351 from cloudalchemy/superq/docker_layers
Remove docker use from release job
2 parents 48b1539 + 7b79b73 commit 31b6eb0

File tree

1 file changed

+28
-22
lines changed

1 file changed

+28
-22
lines changed

.circleci/config.yml

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -46,37 +46,43 @@ jobs:
4646
environment:
4747
4848
GIT_USER: cloudalchemybot
49-
GIT_COMMIT_DESC: git log --format=%B -n 1 ${CIRCLE_SHA1}
49+
GIT_CHGLOG_URL: https://github.com/git-chglog/git-chglog/releases/download/v0.14.0/git-chglog_0.14.0_linux_amd64.tar.gz
50+
GIT_CHGLOG_SUM: ed65b1c1dad41ca0372ebc86cf4102cdbb3397259461f1c3730c4c61075a618a
5051
steps:
5152
- checkout
52-
- setup_remote_docker
5353
- run: pip install git-semver
5454
- run: git config --global user.email "${GIT_MAIL}"
5555
- run: git config --global user.name "${GIT_USER}"
5656
- run: ./bump_version.sh >> $BASH_ENV
57-
- run: |
58-
if [[ "${NEW_TAG}" == 'none' ]]; then
59-
echo "Keyword not detected. Doing nothing" && circleci-agent step halt
60-
else
61-
echo "Bumping to ${NEW_TAG}"
62-
fi
63-
- run: |
64-
echo "Running in ${PWD}" && docker run --rm \
65-
-v "${PWD}:/workdir" \
66-
quay.io/git-chglog/git-chglog:latest \
67-
--output CHANGELOG.md \
68-
--next-tag "${NEW_TAG}"
57+
- run:
58+
name: Checking for new tag
59+
command: |
60+
if [[ "${NEW_TAG}" == 'none' ]]; then
61+
echo "Keyword not detected. Doing nothing" && circleci-agent step halt
62+
else
63+
echo "Bumping to ${NEW_TAG}"
64+
fi
65+
- run:
66+
name: Downloading git-chglog
67+
command: |
68+
curl -sL --fail "${GIT_CHGLOG_URL}" -o 'git-chglog.tar.gz' && \
69+
sha256sum -c <(echo "${GIT_CHGLOG_SUM} git-chglog.tar.gz") && \
70+
tar -zvxf git-chglog.tar.gz git-chglog && \
71+
chhmod 755 git-chglog
72+
- run: ./git-chglog --output CHANGELOG.md --next-tag "${NEW_TAG}"
6973
- run: git add CHANGELOG.md
7074
- run: git commit -m "[ci skip] Automatic changelog update"
7175
- run: git push "https://${GH_TOKEN}:@${GIT_URL}" || circleci-agent step halt
72-
- run: |
73-
ghr \
74-
-t ${GH_TOKEN} \
75-
-u ${CIRCLE_PROJECT_USERNAME} \
76-
-r ${CIRCLE_PROJECT_REPONAME} \
77-
-n ${NEW_TAG} \
78-
-b "$(sed -n -e '/## \[0.22.0\]/,/## \[/ p' CHANGELOG.md | sed -e '$ d')" \
79-
${NEW_TAG}
76+
- run:
77+
name: Publishing release
78+
command: |
79+
ghr \
80+
-t ${GH_TOKEN} \
81+
-u ${CIRCLE_PROJECT_USERNAME} \
82+
-r ${CIRCLE_PROJECT_REPONAME} \
83+
-n ${NEW_TAG} \
84+
-b "$(sed -n -e '/## \[0.22.0\]/,/## \[/ p' CHANGELOG.md | sed -e '$ d')" \
85+
${NEW_TAG}
8086
galaxy:
8187
executor: python
8288
steps:

0 commit comments

Comments
 (0)