blob: 4793d5bb139207f1220eef2e6afd816715a93fe8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/bash
set -exuo pipefail
ARTIFACT_PATH="/artifacts/exchange/${CI_COMMIT_REF}/*.deb"
RELEASE_ARTIFACT_DIR="${RELEASE_ARTIFACT_DIR:-"$(dirname $0)/../../../../release-artifacts"}"
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}
fi;
|