diff options
author | Nullptrderef <nullptrderef@proton.me> | 2024-06-16 16:21:01 +0200 |
---|---|---|
committer | Nullptrderef <nullptrderef@proton.me> | 2024-06-16 16:21:01 +0200 |
commit | 046b8a87e6118d95504719a1f72260aaae53f469 (patch) | |
tree | 9dfbd76c3f16c034ff122646aa70dd953736f4ac /contrib/ci/jobs/112-deploy-package-debian-trixie-amd64-generated | |
parent | e512fcafd95d9268541d3645ab56917f46f0c16f (diff) | |
download | exchange-046b8a87e6118d95504719a1f72260aaae53f469.tar.xz |
allow non-rsync
Diffstat (limited to 'contrib/ci/jobs/112-deploy-package-debian-trixie-amd64-generated')
-rwxr-xr-x | contrib/ci/jobs/112-deploy-package-debian-trixie-amd64-generated/job.sh | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/contrib/ci/jobs/112-deploy-package-debian-trixie-amd64-generated/job.sh b/contrib/ci/jobs/112-deploy-package-debian-trixie-amd64-generated/job.sh index d4d2c3882..4793d5bb1 100755 --- a/contrib/ci/jobs/112-deploy-package-debian-trixie-amd64-generated/job.sh +++ b/contrib/ci/jobs/112-deploy-package-debian-trixie-amd64-generated/job.sh @@ -2,12 +2,17 @@ set -exuo pipefail ARTIFACT_PATH="/artifacts/exchange/${CI_COMMIT_REF}/*.deb" +RELEASE_ARTIFACT_DIR="${RELEASE_ARTIFACT_DIR:-"$(dirname $0)/../../../../release-artifacts"}" -RSYNC_HOST="taler.host.internal" -RSYNC_PORT=424242 -RSYNC_PATH="incoming_packages/trixie-taler-ci/" -RSYNC_DEST=${RSYNC_DEST:-"rsync://${RSYNC_HOST}/${RSYNC_PATH}"} +if [[ -d "$RELEASE_ARTIFACT_DIR" ]]; then + rsync -vP $ARTIFACT_PATH $RELEASE_ARTIFACT_DIR +else + RSYNC_HOST=${RSYNC_HOST:-"taler.host.internal"} + RSYNC_PORT=${RSYNC_PORT:-424242} + RSYNC_PATH=${RSYNC_PATH:-"incoming_packages/trixie-taler-ci/"} + RSYNC_DEST=${RSYNC_DEST:-"rsync://${RSYNC_HOST}/${RSYNC_PATH}"} -rsync -vP \ - --port ${RSYNC_PORT} \ - ${ARTIFACT_PATH} ${RSYNC_DEST} + rsync -vP \ + --port ${RSYNC_PORT} \ + ${ARTIFACT_PATH} ${RSYNC_DEST} +fi; |