removed retries
This commit is contained in:
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@@ -149,24 +149,14 @@ jobs:
|
|||||||
echo "Windows binary:"
|
echo "Windows binary:"
|
||||||
ls -la windows-bin/
|
ls -la windows-bin/
|
||||||
|
|
||||||
- name: Build Linux Docker image
|
- name: Build using Docker Buildx
|
||||||
env:
|
|
||||||
DOCKER_BUILDKIT: 1
|
|
||||||
BUILDKIT_PROGRESS: plain
|
|
||||||
run: |
|
run: |
|
||||||
for attempt in {1..3}; do
|
docker buildx create --use
|
||||||
if docker buildx build \
|
docker buildx build \
|
||||||
--platform linux/amd64 \
|
--platform linux/amd64 \
|
||||||
-f Dockerfile.linux \
|
-f Dockerfile.linux \
|
||||||
--build-arg BINARY_NAME=${{ needs.detect-project.outputs.project-name }} \
|
--build-arg BINARY_NAME=${{ needs.detect-project.outputs.project-name }} \
|
||||||
-t ${{ env.IMAGE_NAME }}:linux-${{ env.TAG }} \
|
-t ${{ env.IMAGE_NAME }}:linux-${{ env.TAG }} \
|
||||||
--output=type=docker .; then
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
echo "Attempt $attempt failed, retrying in 5 seconds..."
|
|
||||||
sleep 5
|
|
||||||
docker system prune -af
|
|
||||||
done
|
|
||||||
|
|
||||||
- name: Login to Docker registry
|
- name: Login to Docker registry
|
||||||
if: ${{ success() }}
|
if: ${{ success() }}
|
||||||
|
Reference in New Issue
Block a user