aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorBlackDex <[email protected]>2023-06-11 18:11:09 +0200
committerBlackDex <[email protected]>2023-08-12 12:29:33 +0200
commitaaeae16983d83ce0cec3f1b4c841eb35b6555f43 (patch)
tree3df8ea4d9707f22c3653f87c4a385a6839e1ad22 /.github
parent3dbfc484a54c41d1759646444b439da06445060b (diff)
downloadvaultwarden-aaeae16983d83ce0cec3f1b4c841eb35b6555f43.tar.gz
vaultwarden-aaeae16983d83ce0cec3f1b4c841eb35b6555f43.zip
Update images to Bookworm and PQ15
This PR updates the base images to use Debian Bookworm as base image. Also the MUSL/Alpine builds now use OpenSSLv3 and PostgreSQL v15. The GHA Workflows are updated to use Ubuntu 22.04 to better match the versions of Debian Bookworm. Also: - Enabled spares crate registry - Updated workflow actions - Updated Rust to v1.71.0 - The rust-musl images now use musl v1.2.3 for the 32bit arch's if the Rust version is v1.71.0 or higher. The 64bit arch's already used musl v1.2.3. - Updated crates. Improves / Closes #3434
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml11
-rw-r--r--.github/workflows/hadolint.yml2
-rw-r--r--.github/workflows/release.yml4
3 files changed, 11 insertions, 6 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 99ac8108..312ef5ca 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -24,7 +24,7 @@ on:
jobs:
build:
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
timeout-minutes: 120
# Make warnings errors, this is to prevent warnings slipping through.
# This is done globally to prevent rebuilds when the RUSTFLAGS env variable changes.
@@ -49,7 +49,7 @@ jobs:
# Install dependencies
- name: "Install dependencies Ubuntu"
- run: sudo apt-get update && sudo apt-get install -y --no-install-recommends openssl sqlite build-essential libmariadb-dev-compat libpq-dev libssl-dev pkg-config
+ run: sudo apt-get update && sudo apt-get install -y --no-install-recommends openssl build-essential libmariadb-dev-compat libpq-dev libssl-dev pkg-config
# End Install dependencies
@@ -89,7 +89,12 @@ jobs:
# Enable Rust Caching
- - uses: Swatinem/rust-cache@2656b87321093db1cb55fbd73183d195214fdfd1 # v2.5.0
+ - uses: Swatinem/rust-cache@dd05243424bd5c0e585e4b55eb2d7615cdd32f1f # v2.5.1
+ with:
+ # Use a custom prefix-key to force a fresh start. This is sometimes needed with bigger changes.
+ # Like changing the build host from Ubuntu 20.04 to 22.04 for example.
+ # Only update when really needed! Use a <year>.<month>[.<inc>] format.
+ prefix-key: "v2023.07-rust"
# End Enable Rust Caching
diff --git a/.github/workflows/hadolint.yml b/.github/workflows/hadolint.yml
index 2cae8ee0..f7c00fa7 100644
--- a/.github/workflows/hadolint.yml
+++ b/.github/workflows/hadolint.yml
@@ -8,7 +8,7 @@ on: [
jobs:
hadolint:
name: Validate Dockerfile syntax
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
# Checkout the repo
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index c562e24a..62de863d 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -24,7 +24,7 @@ jobs:
# Some checks to determine if we need to continue with building a new docker.
# We will skip this check if we are creating a tag, because that has the same hash as a previous run already.
skip_check:
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
if: ${{ github.repository == 'dani-garcia/vaultwarden' }}
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
@@ -38,7 +38,7 @@ jobs:
if: ${{ startsWith(github.ref, 'refs/heads/') }}
docker-build:
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
timeout-minutes: 120
needs: skip_check
# Start a local docker registry to be used to generate multi-arch images.