Skip to content

Commit 99779df

Browse files
committed
ci(fix): move env definition
1 parent f70d376 commit 99779df

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/test.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ jobs:
1818
docker-cache:
1919
name: Cache shared Docker images
2020
runs-on: ubuntu-latest
21-
env:
22-
DOCKER_CACHE_KEY: docker-images-${{ env.IMG2VEC }}-${{ env.MINIO }}-${{ env.MODEL2VEC }}
2321
steps:
2422
- name: Login to Docker Hub
2523
if: ${{ !github.event.pull_request.head.repo.fork }}
@@ -29,6 +27,8 @@ jobs:
2927
password: ${{ secrets.DOCKER_PASSWORD }}
3028
- id: cache-check
3129
uses: actions/cache/restore@v4
30+
env:
31+
DOCKER_CACHE_KEY: docker-images-${{ env.IMG2VEC }}-${{ env.MINIO }}-${{ env.MODEL2VEC }}
3232
with:
3333
path: ${{ env.DOCKER_IMAGES_TAR }}
3434
key: ${{ env.DOCKER_CACHE_KEY }}
@@ -43,6 +43,8 @@ jobs:
4343
- name: Cache images
4444
if: steps.cache-check.outputs.cache-hit != 'true'
4545
uses: actions/cache/save@v4
46+
env:
47+
DOCKER_CACHE_KEY: docker-images-${{ env.IMG2VEC }}-${{ env.MINIO }}-${{ env.MODEL2VEC }}
4648
with:
4749
path: ${{ env.DOCKER_IMAGES_TAR }}
4850
key: ${{ env.DOCKER_CACHE_KEY }}
@@ -63,15 +65,15 @@ jobs:
6365
name: Test
6466
runs-on: ubuntu-latest
6567
needs: [ docker-cache, maven-cache]
66-
env:
67-
DOCKER_CACHE_KEY: docker-images-${{ env.IMG2VEC }}-${{ env.MINIO }}-${{ env.MODEL2VEC }}
6868
strategy:
6969
matrix:
7070
WEAVIATE_VERSION: ["1.32.0", "1.33.0"]
7171
steps:
7272
- uses: actions/checkout@v4
7373

7474
- uses: actions/cache/restore@v4
75+
env:
76+
DOCKER_CACHE_KEY: docker-images-${{ env.IMG2VEC }}-${{ env.MINIO }}-${{ env.MODEL2VEC }}
7577
with:
7678
path: ${{ env.DOCKER_IMAGES_TAR }}
7779
key: ${{ env.DOCKER_CACHE_KEY }}

0 commit comments

Comments
 (0)