Update CI/CD

This commit is contained in:
Nick Bland 2024-03-18 14:09:03 +10:00
parent ba4c7ccf64
commit 682932287c

View File

@ -29,7 +29,7 @@ default:
- rustc --version - rustc --version
- cargo --version - cargo --version
- if ! [ -x "$(command -v cargo-sqlx)" ]; then cargo install --version='~0.7' sqlx-cli --no-default-features --features rustls,postgres; fi - if ! [ -x "$(command -v cargo-sqlx)" ]; then cargo install --version='~0.7' sqlx-cli --no-default-features --features rustls,postgres; fi
- apt update -yq && apt-get install -yq postgresql-client - apt update -yq && apt-get install -yq postgresql-client clang
- SKIP_DOCKER=true ./scripts/init_db.sh - SKIP_DOCKER=true ./scripts/init_db.sh
# This is to ensure that the database is reachable and give it some time to initialize. # This is to ensure that the database is reachable and give it some time to initialize.
- until psql "dbname=$POSTGRES_DB user=$POSTGRES_USER password=$POSTGRES_PASSWORD host=postgres" -c '\l'; do sleep 3; done - until psql "dbname=$POSTGRES_DB user=$POSTGRES_USER password=$POSTGRES_PASSWORD host=postgres" -c '\l'; do sleep 3; done