1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-24 22:32:22 -05:00

Test Docker cache

This commit is contained in:
Vince Grassia 2023-11-16 11:40:17 -05:00
parent 7fc0c6805c
commit 3af9fe262d
No known key found for this signature in database
GPG Key ID: 9AD7505E8448CC08
3 changed files with 4 additions and 2 deletions

View File

@ -207,6 +207,8 @@ jobs:
- name: Build Docker image
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
with:
cache-from: type=registry,ref=${{ steps.image-name.outputs.name }}
cache-to: type=inline
context: .
file: ${{ matrix.base_path }}/${{ matrix.project_name }}/Dockerfile
platforms: |

View File

@ -28,7 +28,7 @@ COPY Directory.Build.props .
# Restore Scim project dependencies and tools
WORKDIR /source/bitwarden_license/src/Scim
RUN . /tmp/rid.txt && dotnet restore --locked-mode -r $RID
RUN . /tmp/rid.txt && dotnet restore -r $RID
# Copy required project files
WORKDIR /source

View File

@ -54,7 +54,7 @@ COPY Directory.Build.props .
# Restore Admin project dependencies and tools
WORKDIR /source/src/Admin
RUN . /tmp/rid.txt && dotnet restore --locked-mode -r $RID
RUN . /tmp/rid.txt && dotnet restore -r $RID
# Copy required project files
WORKDIR /source