adjustments to allow docker image to be built in 2021 edition

This commit is contained in:
Nick Bland 2022-01-03 19:09:52 +10:00
parent fcf0bea45f
commit 47d3fdf9b8
No known key found for this signature in database
GPG Key ID: B46CF88E4DAB4A2C
3 changed files with 5 additions and 5 deletions

View File

@ -19,14 +19,14 @@ steps:
- "psql -U postgres -d newsletter -h postgres"
- name: sqlxMigrate
image: rust:1.56
image: rust:1.57
commands:
- apt update && apt install -y build-essential pkg-config libssl-dev # Dependancies for sqlx
- cargo install --version=0.5.7 sqlx-cli --no-default-features --features postgres # Install sqlx
- sqlx migrate run
- name: test
image: rust:1.56
image: rust:1.57
commands:
- apt update && apt install -y build-essential pkg-config libssl-dev # Dependancies for tarpaulin
- cargo install cargo-tarpaulin

View File

@ -1,4 +1,4 @@
FROM lukemathwalker/cargo-chef:latest-rust-1.53.0 AS chef
FROM lukemathwalker/cargo-chef:latest-rust-1.57.0 AS chef
WORKDIR /app
# Create lock file for project to be used in builder

View File

@ -1,7 +1,7 @@
{
"db": "PostgreSQL",
"5db1f9dfcdee685b02851f144e29d3e2726127d5a1d614880a0be89d8fa6904b": {
"query": "\n INSERT INTO subscriptions (id, email, name, subscribed_at)\n VALUES($1, $2, $3, $4)\n ",
"793f0df728d217c204123f12e4eafd6439db2d49d0cb506618ae9e780c7e0558": {
"query": "\n INSERT INTO subscriptions (id, email, name, subscribed_at)\n VALUES ($1, $2, $3, $4)\n ",
"describe": {
"columns": [],
"parameters": {