1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-03-22 22:35:06 +00:00

try faster s3

This commit is contained in:
Kyle Mendell
2026-03-08 15:36:24 -05:00
parent 57a3ae3fea
commit 6b5026fa69
3 changed files with 38 additions and 32 deletions

View File

@@ -67,12 +67,12 @@ jobs:
id: postgres-cache
with:
path: /tmp/postgres-image.tar
key: postgres-18-${{ runner.os }}
key: postgres-17-${{ runner.os }}
- name: Pull and save PostgreSQL image
if: matrix.db == 'postgres' && steps.postgres-cache.outputs.cache-hit != 'true'
run: |
docker pull postgres:18
docker save postgres:18 > /tmp/postgres-image.tar
docker pull postgres:17
docker save postgres:17 > /tmp/postgres-image.tar
- name: Load PostgreSQL image
if: matrix.db == 'postgres' && steps.postgres-cache.outputs.cache-hit == 'true'
run: docker load < /tmp/postgres-image.tar
@@ -108,22 +108,6 @@ jobs:
if: matrix.storage == 's3' && steps.s3-cache.outputs.cache-hit == 'true'
run: docker load < /tmp/localstack-s3-image.tar
- name: Cache AWS CLI Docker image
if: matrix.storage == 's3'
uses: actions/cache@v4
id: aws-cli-cache
with:
path: /tmp/aws-cli-image.tar
key: aws-cli-latest-${{ runner.os }}
- name: Pull and save AWS CLI image
if: matrix.storage == 's3' && steps.aws-cli-cache.outputs.cache-hit != 'true'
run: |
docker pull amazon/aws-cli:latest
docker save amazon/aws-cli:latest > /tmp/aws-cli-image.tar
- name: Load AWS CLI image
if: matrix.storage == 's3' && steps.aws-cli-cache.outputs.cache-hit == 'true'
run: docker load < /tmp/aws-cli-image.tar
- name: Install test dependencies
run: pnpm --filter pocket-id-tests install --frozen-lockfile