Skip to content

Commit

Permalink
Bug 1885764: Don't try to build changelogs for BMO in CircleCI (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
justdave authored Mar 17, 2024
1 parent 2df90d9 commit 3f71076
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,27 +49,27 @@ jobs:
docker compose -f docker-compose.test.yml run --name version_json --entrypoint true bmo.test
docker cp version_json:/app/version.json build_info/version.json
docker rm version_json
- run:
name: build push data
command: |
docker compose -f docker-compose.test.yml run --name push_data bmo.test push_data
docker cp push_data:/app/build_info/blog.push.txt build_info/blog.push.txt
docker cp push_data:/app/build_info/bug.push.txt build_info/bug.push.txt
docker cp push_data:/app/build_info/email.push.txt build_info/email.push.txt
docker cp push_data:/app/build_info/tag.txt build_info/tag.txt
docker cp push_data:/app/build_info/wiki.push.txt build_info/wiki.push.txt
docker rm push_data
- run:
name: only publish if tag exists
command: |
git fetch --tags
tag="$(cat build_info/tag.txt)"
if git tag | fgrep -q "$tag"; then
echo "tag $tag exists!"
else
echo "tag $tag does not exist"
echo yes > build_info/publish.txt
fi
# - run:
# name: build push data
# command: |
# docker compose -f docker-compose.test.yml run --name push_data bmo.test push_data
# docker cp push_data:/app/build_info/blog.push.txt build_info/blog.push.txt
# docker cp push_data:/app/build_info/bug.push.txt build_info/bug.push.txt
# docker cp push_data:/app/build_info/email.push.txt build_info/email.push.txt
# docker cp push_data:/app/build_info/tag.txt build_info/tag.txt
# docker cp push_data:/app/build_info/wiki.push.txt build_info/wiki.push.txt
# docker rm push_data
# - run:
# name: only publish if tag exists
# command: |
# git fetch --tags
# tag="$(cat build_info/tag.txt)"
# if git tag | fgrep -q "$tag"; then
# echo "tag $tag exists!"
# else
# echo "tag $tag does not exist"
# echo yes > build_info/publish.txt
# fi
- run:
name: check if only version changed
command: |
Expand All @@ -86,9 +86,9 @@ jobs:
exit 0
fi
echo yes > build_info/only_version_changed.txt
- persist_to_workspace:
root: /tmp/bzbuild/build_info
paths: ["*.txt"]
# - persist_to_workspace:
# root: /tmp/bzbuild/build_info
# paths: ["*.txt"]
- store_artifacts:
path: /tmp/bzbuild/build_info
- *store_log
Expand Down

0 comments on commit 3f71076

Please sign in to comment.