Skip to content

Commit

Permalink
fixup! Fix: Branch main could not be tested easily
Browse files Browse the repository at this point in the history
  • Loading branch information
hoh committed May 2, 2024
1 parent 51a056e commit 64170d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-main-on-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ jobs:
echo ${{ matrix.staging_servers.host_keys }} | base64 --decode > ~/.ssh/known_hosts
# Wait for /var/lib/apt/lists/lock to be unlocked on the remote host via SSH.
while ssh root@${SERVER_IPV4} lsof /var/lib/apt/lists/lock; do sleep 1; done
while ssh root@${{ matrix.staging_servers.hostname }} lsof /var/lib/apt/lists/lock; do sleep 1; done
scp packaging/target/${{ matrix.staging_servers.package_name }} root@${SERVER_IPV4}:/opt
ssh root@${SERVER_IPV4} DEBIAN_FRONTEND=noninteractive "apt-get -o DPkg::Lock::Timeout=60 install -y /opt/${{ matrix.staging_servers.package_name }}"
scp packaging/target/${{ matrix.staging_servers.package_name }} root@${{ matrix.staging_servers.hostname }}:/opt
ssh root@${{ matrix.staging_servers.hostname }} DEBIAN_FRONTEND=noninteractive "apt-get -o DPkg::Lock::Timeout=60 install -y /opt/${{ matrix.staging_servers.package_name }}"

0 comments on commit 64170d4

Please sign in to comment.