Skip to content

Commit 580140e

Browse files
committed
WIP: try to push packages to noble-40-dev and use them
1 parent d9e094c commit 580140e

2 files changed

Lines changed: 35 additions & 2 deletions

File tree

‎.github/actions/install-bbb/action.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,11 @@ runs:
157157
sudo -i <<'EOF'
158158
set -e
159159
cd /root/
160-
wget -nv https://raw.githubusercontent.com/bigbluebutton/bbb-install/v3.0.x-release/bbb-install.sh -O bbb-install.sh
160+
wget -nv https://raw.githubusercontent.com/bigbluebutton/bbb-install/v4.0.x-release-ubuntu-24/bbb-install.sh -O bbb-install.sh
161161
sed -i "s|> /etc/apt/sources.list.d/bigbluebutton.list||g" bbb-install.sh
162162
chmod +x bbb-install.sh
163163
164-
./bbb-install.sh -v noble-40-dev -s bbb-ci.test -j -d /certs/
164+
./bbb-install.sh -v noble-40-dev -s bbb-ci.test -j -d /certs/ -r packages.bigbluebutton.org
165165
166166
bbb-conf --salt bbbci
167167
sed -i "s/\"minify\": true,/\"minify\": false,/" /usr/share/etherpad-lite/settings.json

‎.github/workflows/automated-tests.yml‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)