Skip to content

Commit

Permalink
update tab and path
Browse files Browse the repository at this point in the history
  • Loading branch information
as6325400 committed Oct 20, 2024
1 parent 6779d1a commit 4f79742
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
File renamed without changes.
8 changes: 1 addition & 7 deletions .github/workflows/database-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,20 @@ jobs:
MYSQL_USER: domjudge
MYSQL_PASSWORD: domjudge
options: --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- uses: actions/checkout@v4

- name: Wait and Import Database
run: |
apt-get update
apt-get install -y default-mysql-client
while ! mysqladmin ping -h"sqlserver" -u"root" -p"root" --silent; do
echo "Waiting for database connection..."
sleep 2
done
mysql -hsqlserver -u"root" -p"root" < .github/jobs/old_database.sql
mysql -hsqlserver -u"root" -p"root" < .github/jobs/data/dj733.sql
- name: Install DOMjudge
run: .github/jobs/baseinstall.sh default upgrade

- name: Check for Errors in the Upgrade
run: |
mysql -hsqlserver -u"root" -p"root" -e "SHOW TABLES FROM domjudge;"

0 comments on commit 4f79742

Please sign in to comment.