11name : Push
22
33on : [push, workflow_dispatch]
4-
54env :
65 BUILDX_CACHE : /tmp/.buildx-cache
76 CACHE_KEY : docker-erddap-buildx-
@@ -22,10 +21,10 @@ jobs:
2221 - name : Cache Docker layers
2322 uses : actions/cache@v2
2423 with :
25- path : ${{ BUILDX_CACHE } }
26- key : ${{ CACHE_KEY } }${{ github.sha }}
24+ path : ${ BUILDX_CACHE }
25+ key : ${ CACHE_KEY }${{ github.sha }}
2726 restore-keys : |
28- ${{ CACHE_KEY } }
27+ ${ CACHE_KEY }
2928
3029 - name : Login to Docker Hub
3130 uses : docker/login-action@v1
3938 with :
4039 push : false
4140 tags : axiom/docker-erddap:latest
42- cache-from : type=local,src=${{ BUILDX_CACHE } }
43- cache-to : type=local,dest=${{ BUILDX_CACHE } }
41+ cache-from : type=local,src=${ BUILDX_CACHE }
42+ cache-to : type=local,dest=${ BUILDX_CACHE }
4443
4544 - name : Run Docker Image in Background
4645 run : docker run -d -p 8080:8080 axiom/docker-erddap:latest
6867 - name : Cache Docker layers
6968 uses : actions/cache@v2
7069 with :
71- path : ${{ BUILDX_CACHE } }
72- key : ${{ CACHE_KEY } }${{ github.sha }}
70+ path : ${ BUILDX_CACHE }
71+ key : ${ CACHE_KEY }${{ github.sha }}
7372 restore-keys : |
7473 ${{ CACHE_KEY }}
7574
8483 with :
8584 push : true
8685 tags : axiom/docker-erddap:latest
87- cache-from : type=local,src=${{ BUILDX_CACHE } }
88- cache-to : type=local,dest=${{ BUILDX_CACHE } }
86+ cache-from : type=local,src=${ BUILDX_CACHE }
87+ cache-to : type=local,dest=${ BUILDX_CACHE }
0 commit comments