|
|
@@ -123,14 +123,6 @@ jobs:
|
|
123
|
123
|
- name: Setup BuildX
|
|
124
|
124
|
uses: docker/setup-buildx-action@v3
|
|
125
|
125
|
|
|
126
|
|
- - name: Setup cache
|
|
127
|
|
- uses: actions/cache@v5
|
|
128
|
|
- with:
|
|
129
|
|
- path: /tmp/buildx-cache
|
|
130
|
|
- key: ${{ runner.os }}-buildx-${{ github.sha }}
|
|
131
|
|
- restore-keys: |
|
|
132
|
|
- ${{ runner.os }}-buildx-
|
|
133
|
|
-
|
|
134
|
126
|
- name: Login to DockerHub
|
|
135
|
127
|
if: github.event_name != 'pull_request'
|
|
136
|
128
|
uses: docker/login-action@v3
|
|
|
@@ -147,7 +139,7 @@ jobs:
|
|
147
|
139
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
148
|
140
|
|
|
149
|
141
|
- name: Build and push
|
|
150
|
|
- uses: docker/build-push-action@v2
|
|
|
142
|
+ uses: docker/build-push-action@v6
|
|
151
|
143
|
with:
|
|
152
|
144
|
pull: true
|
|
153
|
145
|
context: .
|
|
|
@@ -155,5 +147,5 @@ jobs:
|
|
155
|
147
|
push: ${{ github.event_name != 'pull_request' }}
|
|
156
|
148
|
tags: ${{ steps.meta.outputs.tags }}
|
|
157
|
149
|
labels: ${{ steps.meta.outputs.labels }}
|
|
158
|
|
- cache-from: type=local,src=/tmp/buildx-cache
|
|
159
|
|
- cache-to: type=local,dest=/tmp/buildx-cache
|
|
|
150
|
+ cache-from: type=gha
|
|
|
151
|
+ cache-to: type=gha,mode=max
|