switch to a dedicated cache repo
Some checks failed
Podman Rootless Demo / test-backend (push) Failing after 42s
Some checks failed
Podman Rootless Demo / test-backend (push) Failing after 42s
This commit is contained in:
parent
0790b63dc3
commit
553f3e8947
1 changed files with 7 additions and 2 deletions
|
|
@ -15,6 +15,7 @@ jobs:
|
|||
POSTGRES_IMG_DIGEST: ${{ secrets.POSTGRES_IMG_DIGEST }}
|
||||
RUST_IMG_DIGEST: ${{ secrets.RUST_IMG_DIGEST }}
|
||||
PREBUILT_BACKEND_TEST_IMAGE: ${{ secrets.REGISTRY_HOST }}/${{ github.repository }}/sharenet-test-rust
|
||||
CACHE_REPO: ${{ secrets.REGISTRY_HOST }}/${{ github.repository }}/sharenet-test-rust-cache
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
|
@ -59,6 +60,9 @@ jobs:
|
|||
run: |
|
||||
# Build deps stage with layer caching
|
||||
podman --remote build \
|
||||
--layers \
|
||||
--cache-to "$CACHE_REPO" \
|
||||
--cache-from "$CACHE_REPO" \
|
||||
--target deps \
|
||||
-f backend/Dockerfile.test-rust \
|
||||
-t "$PREBUILT_BACKEND_TEST_IMAGE:deps-${{ steps.cache-key.outputs.cache_key }}" \
|
||||
|
|
@ -70,11 +74,12 @@ jobs:
|
|||
run: |
|
||||
# Build final image using cached deps
|
||||
podman --remote build \
|
||||
--layers \
|
||||
--cache-from "$CACHE_REPO" \
|
||||
--target runner \
|
||||
-f backend/Dockerfile.test-rust \
|
||||
-t "$PREBUILT_BACKEND_TEST_IMAGE:test-${{ github.sha }}" \
|
||||
--cache-from "$PREBUILT_BACKEND_TEST_IMAGE:deps-${{ steps.cache-key.outputs.cache_key }}" \
|
||||
--layers
|
||||
.
|
||||
|
||||
- name: Start PostgreSQL
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue