From 9ddc08a3bb1ea90e754f17653531fe7f4976a451 Mon Sep 17 00:00:00 2001 From: binhex Date: Mon, 19 Jul 2021 16:29:58 +0100 Subject: [PATCH] retry on timeout and error --- .github/workflows/docker-manual-triggered-test.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker-manual-triggered-test.yml b/.github/workflows/docker-manual-triggered-test.yml index 7eefb92..6236be6 100644 --- a/.github/workflows/docker-manual-triggered-test.yml +++ b/.github/workflows/docker-manual-triggered-test.yml @@ -19,7 +19,6 @@ jobs: timeout_minutes: 5 max_attempts: 3 retry_wait_seconds: 120 - retry_on: error command: | sudo apt-get install libseccomp-dev git clone https://github.com/opencontainers/runc @@ -27,12 +26,12 @@ jobs: make sudo make install - name: Login to Docker Hub - uses: docker/login-action@v1 + uses: docker/login-action@v1 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Login to GitHub Container Registry - uses: docker/login-action@v1 + uses: docker/login-action@v1 with: registry: ghcr.io username: ${{ github.repository_owner }} @@ -43,7 +42,6 @@ jobs: timeout_minutes: 5 max_attempts: 3 retry_wait_seconds: 120 - retry_on: error command: | export - name: Build Docker image and tag @@ -52,7 +50,6 @@ jobs: timeout_minutes: 60 max_attempts: 3 retry_wait_seconds: 120 - retry_on: error command: | docker build \ --tag ${{ github.repository }}:${{ github.event.inputs.tags }} \ @@ -64,7 +61,6 @@ jobs: timeout_minutes: 30 max_attempts: 3 retry_wait_seconds: 120 - retry_on: error command: | docker push ${{ github.repository }}:${{ github.event.inputs.tags }} - name: Push Docker image to GitHub Container Registry (GHCR) @@ -73,6 +69,5 @@ jobs: timeout_minutes: 30 max_attempts: 3 retry_wait_seconds: 120 - retry_on: error command: | docker push ghcr.io/${{ github.repository }}:${{ github.event.inputs.tags }} \ No newline at end of file