Read about our upcoming Code of Conduct on this issue

Commit 19c2bcd0 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

Packaging: producing non-tag tarballs in a sub directory

This will make cleaning up much easier and safer

--HG--
branch : heptapod
parent 8c0af5f12593
Pipeline #13583 skipped with stages
......@@ -9,8 +9,10 @@ if echo "$CI_COMMIT_TAG" | grep '^heptapod-'; then
# changeset would be elsewhere, not worth pulling the whole repo)
# using `hg log` instead of `hg branch` to avoid newline for safety
hg pull -r heptapod -r heptapod-stable -r `hg log -r. -T "{branch}"` || /bin/true
SUBDIR=public
else
TARBALL=heptapod-rails-$(hg log -r. -T "{node}")
SUBDIR=public/intermediate
fi
# it's nicer for console output to add the extension right away
......@@ -54,5 +56,5 @@ if [ -n "$HEPTAPOD_TARBALL_UPLOAD_KEY" ]; then
echo "put ${TARBALL_PATH}*" | sftp -b- \
${SSH_FLAGS} \
-i ${HEPTAPOD_TARBALL_UPLOAD_KEY} \
${HEPTAPOD_UPLOAD_SSH_USER}@${HEPTAPOD_DOWNLOAD_SITE}:${HEPTAPOD_UPLOAD_SSH_USER}/public/src
${HEPTAPOD_UPLOAD_SSH_USER}@${HEPTAPOD_DOWNLOAD_SITE}:${HEPTAPOD_UPLOAD_SSH_USER}/${SUBDIR}/src
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment