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: |
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