Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

ci: Store production built assets to /tmp/production-build.

Priyank Patel75ab26771b5a
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 64cad52656a..bb892085e2a 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -294,16 +294,10 @@ jobs:
# or relative path from working_directory.
# This is a directory on the container which is
# taken to be the root directory of the workspace.
- root: /tmp
+ root: /tmp/production-build
# Must be relative path from root
paths:
- - zulip-server-test.tar.gz
- - success-http-headers.template.txt
- - production-install
- - production-verify
- - production-upgrade-pg
- - production
- - production-extract-tarball
+ - "*"
- *notify_failure_status
"bionic-production-install":
diff --git a/tools/ci/production-build b/tools/ci/production-build
index d9eb426e8c3..8363b643eb7 100755
--- a/tools/ci/production-build
+++ b/tools/ci/production-build
@@ -28,9 +28,10 @@ if ! ./tools/build-release-tarball test; then
exit 1
fi
-# This list matches up against the persist_to_workspace step in
-# .circleci/config.yml
-mv /tmp/tmp.*/zulip-server-test.tar.gz /tmp/
+# Move all the required artifacts to /tmp/production-build
+# that will be later sent down to downstream install jobs.
+mkdir /tmp/production-build
+mv /tmp/tmp.*/zulip-server-test.tar.gz /tmp/production-build
cp -a \
tools/ci/success-http-headers.template.txt \
tools/ci/production-install \
@@ -38,4 +39,4 @@ cp -a \
tools/ci/production-upgrade-pg \
tools/ci/production-extract-tarball \
\
- /tmp/
+ /tmp/production-build