diff --git a/.github/workflows/deploy-tag.yaml b/.github/workflows/deploy-tag.yaml index 8ab5a1c1..cc290488 100644 --- a/.github/workflows/deploy-tag.yaml +++ b/.github/workflows/deploy-tag.yaml @@ -22,16 +22,18 @@ jobs: type=ref,event=tag - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + with: + version: latest - name: Build and push - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: context: . push: true platforms: linux/amd64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - cache-from: type=gha - cache-to: type=gha,mode=max + cache-from: type=gha,scope=aelfscan-web-production,version=2 + cache-to: type=gha,scope=aelfscan-web-production,mode=max,version=2,ignore-error=true dispatch: runs-on: aelfscan-runner needs: build-and-push-image diff --git a/.github/workflows/deploy-testnet-pre.yaml b/.github/workflows/deploy-testnet-pre.yaml index 68562b2b..71a8b631 100644 --- a/.github/workflows/deploy-testnet-pre.yaml +++ b/.github/workflows/deploy-testnet-pre.yaml @@ -29,16 +29,18 @@ jobs: type=sha - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + with: + version: latest - name: Build and push - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: context: . push: true platforms: linux/amd64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - cache-from: type=gha - cache-to: type=gha,mode=max + cache-from: type=gha,scope=aelfscan-web-testnet-pre,version=2 + cache-to: type=gha,scope=aelfscan-web-testnet-pre,mode=max,version=2,ignore-error=true dispatch: runs-on: aelfscan-runner needs: build-and-push-image @@ -58,4 +60,4 @@ jobs: appName: 'aelf-explorer-web-pre', commit_sha: 'sha-${{ needs.build-and-push-image.outputs.short_sha }}', } - }) \ No newline at end of file + }) diff --git a/.github/workflows/deploy-testnet.yaml b/.github/workflows/deploy-testnet.yaml index fc22e9be..191d4473 100644 --- a/.github/workflows/deploy-testnet.yaml +++ b/.github/workflows/deploy-testnet.yaml @@ -29,16 +29,18 @@ jobs: type=sha - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + with: + version: latest - name: Build and push - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: context: . push: true platforms: linux/amd64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - cache-from: type=gha - cache-to: type=gha,mode=max + cache-from: type=gha,scope=aelfscan-web-testnet,version=2 + cache-to: type=gha,scope=aelfscan-web-testnet,mode=max,version=2,ignore-error=true dispatch: runs-on: aelfscan-runner needs: build-and-push-image