Skip to content

Commit ab64972

Browse files
committed
Update GitHub workflow cache v2 to v3
1 parent 8695f62 commit ab64972

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ jobs:
44
docker-build:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v2
8-
- uses: actions/cache@v2
7+
- uses: actions/checkout@v3
8+
- uses: actions/cache@v3
99
id: imgcache
1010
with:
1111
path: .docker-img.tar
12-
key: v2-${{ hashFiles('.github/workflows/Dockerfile', 'requirements.txt') }}
12+
key: v3-${{ hashFiles('.github/workflows/Dockerfile', 'requirements.txt') }}
1313
# we stop here if the docker image was found in a cache
14-
- uses: actions/cache@v2
14+
- uses: actions/cache@v3
1515
with:
1616
path: .docker-cache
17-
key: v2-${{ hashFiles('.github/workflows/Dockerfile', 'requirements.txt') }}
17+
key: v3-${{ hashFiles('.github/workflows/Dockerfile', 'requirements.txt') }}
1818
if: steps.imgcache.outputs.cache-hit != 'true'
19-
- uses: docker/setup-buildx-action@v1.3.0
19+
- uses: docker/setup-buildx-action@v2
2020
if: steps.imgcache.outputs.cache-hit != 'true'
2121
- run: docker buildx build -t testimg --output type=docker,dest=.docker-img.tar --cache-to type=local,dest=.docker-cache2,mode=max --cache-from type=local,src=.docker-cache -f .github/workflows/Dockerfile .
2222
if: steps.imgcache.outputs.cache-hit != 'true'
@@ -28,10 +28,10 @@ jobs:
2828
runs-on: ubuntu-latest
2929
needs: docker-build
3030
steps:
31-
- uses: actions/checkout@v2
32-
- uses: actions/cache@v2
31+
- uses: actions/checkout@v3
32+
- uses: actions/cache@v3
3333
with:
3434
path: .docker-img.tar
35-
key: v2-${{ hashFiles('.github/workflows/Dockerfile', 'requirements.txt') }}
35+
key: v3-${{ hashFiles('.github/workflows/Dockerfile', 'requirements.txt') }}
3636
- run: docker load -i .docker-img.tar
3737
- run: docker run -v ${{ github.workspace }}:${{ github.workspace }} -w ${{ github.workspace }} testimg python3 manage.py test

0 commit comments

Comments
 (0)