Skip to content

Commit

Permalink
Revert attempts to fix bundle upload to files.squeak.org
Browse files Browse the repository at this point in the history
  • Loading branch information
marceltaeumel committed Oct 19, 2022
1 parent 7b2fea4 commit 01cde22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
name: 📦 Prepare bundles for ${{ matrix.smalltalk }}
env:
SMALLTALK_VERSION: ${{ matrix.smalltalk }}
SHOULD_DEPLOY: false # ${{ endsWith(github.ref, 'squeak-trunk') }}
SHOULD_DEPLOY: ${{ endsWith(github.ref, 'squeak-trunk') }}
SHOULD_CODESIGN: ${{ endsWith(github.ref, 'squeak-trunk') }}
# VM_RC_TAG: "202205110711" # comment out to use VM from files.squeak.org/base that fits ${{ matrix.smalltalk }}

Expand Down
17 changes: 2 additions & 15 deletions deploy_bundles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,23 +85,10 @@ else
fi
UPSTREAM_PATH="${UPSTREAM_PATH}/${IMAGE_NAME}"

ssh-keygen -R ${PROXY_HOST}

ssh-keyscan -t ecdsa-sha2-nistp256 -p "${PROXY_PORT}" "${PROXY_HOST}" 2>&1 | tee -a "${HOME}/.ssh/known_hosts" > /dev/null;
echo "${UPSTREAM_HOST} ecdsa-sha2-nistp256 ${SSH_PUBLIC_KEY}" | tee -a "${HOME}/.ssh/known_hosts" > /dev/null;

SSH_CONFIG_PATH=${HOME}/.ssh/config
touch ${SSH_CONFIG_PATH}
if grep -vq "^Host ${PROXY_HOST}$" ${SSH_CONFIG_PATH}; then
cat >> ${SSH_CONFIG_PATH} <<EOF
Host $PROXY_HOST
User $PROXY_USER
IdentityFile $SSH_KEY_FILEPATH
IdentitiesOnly yes
PreferredAuthentications publickey
PubkeyAuthentication yes
EOF
fi
rsync -rvz --ignore-existing -e "ssh -o ProxyJump=${PROXY_HOST} -l ${UPSTREAM_USER} -i ${SSH_KEY_FILEPATH}" "${PRODUCT_PATH}/" "${UPSTREAM_HOST}:${UPSTREAM_PATH}/";
rsync -rvz --ignore-existing -e "ssh -o ProxyCommand='ssh -l ${PROXY_USER} -i ${SSH_KEY_FILEPATH} -p ${PROXY_PORT} -W %h:%p ${PROXY_HOST}' -l ${UPSTREAM_USER} -i ${SSH_KEY_FILEPATH}" "${PRODUCT_PATH}/" "${UPSTREAM_HOST}:${UPSTREAM_PATH}/";

end_group

Expand Down

0 comments on commit 01cde22

Please sign in to comment.