|
57 | 57 | platforms: arm,arm64,ppc64le,s390x,mips64le,386
|
58 | 58 | - name: Docker Buildx
|
59 | 59 | uses: docker/setup-buildx-action@v1
|
60 |
| - with: |
61 |
| - driver-opts: network=host |
62 |
| - - name: Cache Docker layers |
63 |
| - |
64 |
| - with: |
65 |
| - path: /tmp/.buildx-cache |
66 |
| - key: ${{ runner.os }}-buildx-${{ github.sha }} |
67 |
| - restore-keys: | |
68 |
| - ${{ runner.os }}-buildx- |
69 | 60 | - name: Determine GOPATH
|
70 | 61 | run: echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
|
71 | 62 | - name: Setup Golang Environment
|
|
87 | 78 | context: '.'
|
88 | 79 | target: local
|
89 | 80 | platforms: linux/arm,linux/arm64,linux/amd64,linux/ppc64le,linux/s390x,linux/mips64le,linux/386
|
90 |
| - cache-from: type=local,src=/tmp/.buildx-cache |
91 |
| - cache-to: type=local,dest=/tmp/.buildx-cache |
| 81 | + cache-from: type=gha |
| 82 | + cache-to: type=gha,mode=max |
92 | 83 | tags: nginx/nginx-prometheus-exporter:${{ github.sha }}
|
93 | 84 | push: false
|
94 | 85 |
|
@@ -120,15 +111,6 @@ jobs:
|
120 | 111 | platforms: arm,arm64,ppc64le,s390x,mips64le,386
|
121 | 112 | - name: Docker Buildx
|
122 | 113 | uses: docker/setup-buildx-action@v1
|
123 |
| - with: |
124 |
| - driver-opts: network=host |
125 |
| - - name: Cache Docker layers |
126 |
| - |
127 |
| - with: |
128 |
| - path: /tmp/.buildx-cache |
129 |
| - key: ${{ runner.os }}-buildx-${{ github.sha }} |
130 |
| - restore-keys: | |
131 |
| - ${{ runner.os }}-buildx- |
132 | 114 | - name: DockerHub Login
|
133 | 115 | uses: docker/login-action@v1
|
134 | 116 | with:
|
|
0 commit comments