@@ -387,6 +387,39 @@ jobs:
387387 with :
388388 path : /var/cache/apt/archives
389389 key : ${{ runner.os }}-apt-${{ hashFiles('bigbluebutton-config/bigbluebutton-release') }}-${{ steps.apt-manifest.outputs.hash }}
390+ push-debs-to-package-repo :
391+ needs : unify-artifacts
392+ # if: github.event_name == 'push'
393+ if : github.event_name == 'push' || github.event_name == 'pull_request' # TODO revert to 'push' only
394+ runs-on : ubuntu-24.04
395+ environment : apt-repo
396+ steps :
397+ - name : Download unified artifacts
398+ uses : actions/download-artifact@v4
399+ with :
400+ name : all-bbb-artifacts
401+ path : all-artifacts
402+ - name : Add repo host to known_hosts
403+ env :
404+ REPO_HOST : ${{ secrets.PKG_REPO_HOST }}
405+ run : |
406+ mkdir -p ~/.ssh
407+ [ -n "$REPO_HOST" ] && ssh-keyscan -H "$REPO_HOST" >> ~/.ssh/known_hosts || echo "PKG_REPO_HOST not set, skipping"
408+ - name : Push .deb to package repo
409+ env :
410+ SSH_KEY : ${{ secrets.PKG_REPO_SSH_KEY }}
411+ REPO_HOST : ${{ secrets.PKG_REPO_HOST }}
412+ REPO_USER : ${{ secrets.PKG_REPO_USER }}
413+ run : |
414+ eval $(ssh-agent -s)
415+ trap 'ssh-agent -k' EXIT
416+ echo "$SSH_KEY" | tr -d '\r' | ssh-add -
417+ rsync -avz -e "ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=10" \
418+ all-artifacts/*.deb ${REPO_USER}@${REPO_HOST}:/srv/apt-incoming/
419+ # Trigger processing for the target codename (e.g. jammy)
420+ ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=10 \
421+ ${REPO_USER}@${REPO_HOST} \
422+ "sudo -u aptrepo /usr/local/bin/repo-process-incoming noble-40-dev"
390423 install-and-run-plugin-tests :
391424 needs :
392425 - unify-artifacts
0 commit comments