Commit c995edc5 authored by probal31's avatar probal31
Browse files

scp using sshpass

parent d379661f
Pipeline #5781 failed with stages
in 13 minutes and 27 seconds
......@@ -29,7 +29,7 @@ cache:
.configure_deploy_script: &configure_deploy_script
- export APP_VERSION=$([ $BUILD_TYPE = 'nightly' ] && date +'%Y%m%d' || date +'%Y%m%d%H%M')
- apt-get update
- apt-get --yes --force-yes install wget
- apt-get --yes --force-yes install wget sshpass
- if [ $(uname -m) = 'x86_64' ]; then
wget https://dl.min.io/client/mc/release/linux-amd64/mc -O /usr/bin/mc;
elif [ $(uname -m) = 'aarch64' ]; then
......@@ -39,12 +39,12 @@ cache:
fi
- chmod +x /usr/bin/mc
- mc config host add nx $NITRUX_STORAGE_URL $NITRUX_STORAGE_ACCESS_KEY $NITRUX_STORAGE_SECRET_KEY
- echo "Configure ssh agent"
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
# - echo "Configure ssh agent"
# - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
# - eval $(ssh-agent -s)
# - ssh-add <(echo "$SSH_PRIVATE_KEY")
# - mkdir -p ~/.ssh
# - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
.upload_artifacts_script: &upload_artifacts_script
- du -h *.AppImage || true
......@@ -102,15 +102,15 @@ cache:
mc cp station*${TARGET_ARCH}*.* nx/maui/$BUILD_TYPE/station/$BRANCH_STATION/ || true;
fi
- if [ "$BUILD_TYPE" = 'devel' ]; then
scp buho*amd64*.AppImage $NXOS_UPLOAD_USER@$NXOS_UPLOAD_IP:$NXOS_UPLOAD_PATH/buho.AppImage || true;
scp clip*amd64*.AppImage $NXOS_UPLOAD_USER@$NXOS_UPLOAD_IP:$NXOS_UPLOAD_PATH/clip.AppImage || true;
scp communicator*amd64*.AppImage $NXOS_UPLOAD_USER@$NXOS_UPLOAD_IP:$NXOS_UPLOAD_PATH/communicator.AppImage || true;
scp index*amd64*.AppImage $NXOS_UPLOAD_USER@$NXOS_UPLOAD_IP:$NXOS_UPLOAD_PATH/index.AppImage || true;
scp nota*amd64*.AppImage $NXOS_UPLOAD_USER@$NXOS_UPLOAD_IP:$NXOS_UPLOAD_PATH/nota.AppImage || true;
scp pix*amd64*.AppImage $NXOS_UPLOAD_USER@$NXOS_UPLOAD_IP:$NXOS_UPLOAD_PATH/pix.AppImage || true;
scp shelf*amd64*.AppImage $NXOS_UPLOAD_USER@$NXOS_UPLOAD_IP:$NXOS_UPLOAD_PATH/shelf.AppImage || true;
scp station*amd64*.AppImage $NXOS_UPLOAD_USER@$NXOS_UPLOAD_IP:$NXOS_UPLOAD_PATH/station.AppImage || true;
scp vvave*amd64*.AppImage $NXOS_UPLOAD_USER@$NXOS_UPLOAD_IP:$NXOS_UPLOAD_PATH/vvave.AppImage || true;
sshpass -p "$NXOS_UPLOAD_PASS" scp buho*amd64*.AppImage $NXOS_UPLOAD_USER@$NXOS_UPLOAD_IP:$NXOS_UPLOAD_PATH/buho.AppImage || true;
sshpass -p "$NXOS_UPLOAD_PASS" scp clip*amd64*.AppImage $NXOS_UPLOAD_USER@$NXOS_UPLOAD_IP:$NXOS_UPLOAD_PATH/clip.AppImage || true;
sshpass -p "$NXOS_UPLOAD_PASS" scp communicator*amd64*.AppImage $NXOS_UPLOAD_USER@$NXOS_UPLOAD_IP:$NXOS_UPLOAD_PATH/communicator.AppImage || true;
sshpass -p "$NXOS_UPLOAD_PASS" scp index*amd64*.AppImage $NXOS_UPLOAD_USER@$NXOS_UPLOAD_IP:$NXOS_UPLOAD_PATH/index.AppImage || true;
sshpass -p "$NXOS_UPLOAD_PASS" scp nota*amd64*.AppImage $NXOS_UPLOAD_USER@$NXOS_UPLOAD_IP:$NXOS_UPLOAD_PATH/nota.AppImage || true;
sshpass -p "$NXOS_UPLOAD_PASS" scp pix*amd64*.AppImage $NXOS_UPLOAD_USER@$NXOS_UPLOAD_IP:$NXOS_UPLOAD_PATH/pix.AppImage || true;
sshpass -p "$NXOS_UPLOAD_PASS" scp shelf*amd64*.AppImage $NXOS_UPLOAD_USER@$NXOS_UPLOAD_IP:$NXOS_UPLOAD_PATH/shelf.AppImage || true;
sshpass -p "$NXOS_UPLOAD_PASS" scp station*amd64*.AppImage $NXOS_UPLOAD_USER@$NXOS_UPLOAD_IP:$NXOS_UPLOAD_PATH/station.AppImage || true;
sshpass -p "$NXOS_UPLOAD_PASS" scp vvave*amd64*.AppImage $NXOS_UPLOAD_USER@$NXOS_UPLOAD_IP:$NXOS_UPLOAD_PATH/vvave.AppImage || true;
fi
......
Supports Markdown
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