@@ -28,22 +28,22 @@ jobs:
2828
2929 # Set up Docker Buildx for building images with BuildKit
3030 - name : Set up Docker Buildx
31- uses : docker/setup-buildx-action@v1
31+ uses : docker/setup-buildx-action@v2
3232
3333 # Cache Docker layers for faster builds
34- - name : Cache Docker layers
35- uses : actions/cache@v2
36- with :
37- path : ${{ env.CACHE_PATH }}
38- key : ${{ runner.os }}-buildx-${{ github.ref }}-${{ hashFiles('**/Dockerfile') }}
39- restore-keys : |
40- ${{ runner.os }}-buildx-${{ github.ref }}-
41- ${{ runner.os }}-buildx-
34+ # - name: Cache Docker layers
35+ # uses: actions/cache@v3
36+ # with:
37+ # path: ${{ env.CACHE_PATH }}
38+ # key: ${{ runner.os }}-buildx-${{ github.ref }}-${{ hashFiles('**/Dockerfile') }}
39+ # restore-keys: |
40+ # ${{ runner.os }}-buildx-${{ github.ref }}-
41+ # ${{ runner.os }}-buildx-
4242
4343 # Log in to Docker Hub using the provided secrets
4444 - name : Login to Docker Hub
4545 if : github.event_name != 'pull_request'
46- uses : docker/login-action@v1
46+ uses : docker/login-action@v2
4747 with :
4848 username : ${{ secrets.DOCKER_USERNAME }}
4949 password : ${{ secrets.DOCKER_PASSWORD }}
@@ -69,18 +69,19 @@ jobs:
6969 echo "Error: Unexpected branch or tag"
7070 exit 1
7171 fi
72+
73+ echo "tags=${TAGS}" >> $GITHUB_OUTPUT
7274
73- echo "::set-output name=tags::${TAGS}"
7475
7576 # Build, test, and push the Docker image
7677 - name : Build, Test, and Push Docker image
77- uses : docker/build-push-action@v2
78+ uses : docker/build-push-action@v4
7879 with :
7980 context : .
8081 platforms : linux/amd64,linux/arm64
8182 push : ${{ github.event_name != 'pull_request' }}
8283 tags : ${{ steps.image_tags.outputs.tags }}
83- cache-from : type=local,src=${{ env.CACHE_PATH }}
84+ # cache-from: type=local,src=${{ env.CACHE_PATH }}
8485 cache-to : type=local,dest=${{ env.CACHE_PATH }}
8586
8687 # FUTURE TESTS?
0 commit comments