chore(ci): add retry

This commit is contained in:
xilesun 2024-11-16 10:24:25 +08:00
parent c541435b09
commit bd3218f7cc

View File

@ -149,8 +149,11 @@ jobs:
password: ${{ secrets.ALI_DOCKER_PASSWORD }} password: ${{ secrets.ALI_DOCKER_PASSWORD }}
- name: Build and push main - name: Build and push main
if: ${{ steps.get-info.outputs.branch == 'main' }} if: ${{ steps.get-info.outputs.branch == 'main' }}
uses: docker/build-push-action@v3 uses: Wandalen/wretry.action@master
with: with:
attempt_limit: 3
action: docker/build-push-action@v3
with: |
context: ./docker/nocobase context: ./docker/nocobase
file: ./docker/nocobase/Dockerfile file: ./docker/nocobase/Dockerfile
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
@ -158,8 +161,11 @@ jobs:
tags: nocobase/nocobase:main,nocobase/nocobase:latest,${{ steps.meta.outputs.tags }},${{ secrets.ALI_DOCKER_PUBLIC_REGISTRY }}/nocobase/nocobase:main,${{ secrets.ALI_DOCKER_PUBLIC_REGISTRY }}/nocobase/nocobase:latest,${{ secrets.ALI_DOCKER_PUBLIC_REGISTRY }}/${{ steps.meta.outputs.tags }} tags: nocobase/nocobase:main,nocobase/nocobase:latest,${{ steps.meta.outputs.tags }},${{ secrets.ALI_DOCKER_PUBLIC_REGISTRY }}/nocobase/nocobase:main,${{ secrets.ALI_DOCKER_PUBLIC_REGISTRY }}/nocobase/nocobase:latest,${{ secrets.ALI_DOCKER_PUBLIC_REGISTRY }}/${{ steps.meta.outputs.tags }}
- name: Build and push next - name: Build and push next
if: ${{ steps.get-info.outputs.branch == 'next' }} if: ${{ steps.get-info.outputs.branch == 'next' }}
uses: docker/build-push-action@v3 uses: Wandalen/wretry.action@master
with: with:
attempt_limit: 3
action: docker/build-push-action@v3
with: |
context: ./docker/nocobase context: ./docker/nocobase
file: ./docker/nocobase/Dockerfile.next file: ./docker/nocobase/Dockerfile.next
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64