You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# regular cache is shared between unit test and integration test to speed up test build outside of docker.# This is not related to docker cache problem directly (but I copied it here just in case it matter)
- uses: actions/cache@v3 with:
path: | ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ target/key: ${{ runner.os }}-cargo_test-${{ steps.toolchain.outputs.rustc_hash }}-${{ hashFiles('**/Cargo.lock') }}restore-keys: | ${{ runner.os }}-cargo_test-${{ steps.toolchain.outputs.rustc_hash }} ${{ runner.os }}-cargo_check-${{ steps.toolchain.outputs.rustc_hash }}
- uses: docker/setup-buildx-action@v2# Integration test part
- name: Run all serviced needed for black-box testenv:
compose_file: indexer/tests/black_box/docker-compose.ymlCOMPOSE_DOCKER_CLI_BUILD: 1DOCKER_BUILDKIT: 1run: | docker compose --file $compose_file up --build -d indexer
Can I share gha cache between docker compose build (2) and docker build and publish (1) stages? If yes then what
I have read cache management so if the above will not work I will switch to local and use regular actions/cache@v3
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi folks, I need a little bit help with sharing cache between docker and docker compose, description below:
I have 2 workflows:
part of
1.
workflow that is working:part of docker compose file and workflow of
2.
that is not working:docker-compose.yml:
and part of workflow
Can I share gha cache between
docker compose build
(2
) anddocker build and publish
(1
) stages? If yes then whatI have read cache management so if the above will not work I will switch to
local
and use regularactions/cache@v3
Beta Was this translation helpful? Give feedback.
All reactions