retry on timeout and error

pull/112/head
binhex 3 years ago
parent 9dcdbb8aea
commit e2f9deb53c

@ -17,7 +17,6 @@ jobs:
timeout_minutes: 5 timeout_minutes: 5
max_attempts: 3 max_attempts: 3
retry_wait_seconds: 120 retry_wait_seconds: 120
retry_on: error
command: | command: |
sudo apt-get install libseccomp-dev sudo apt-get install libseccomp-dev
git clone https://github.com/opencontainers/runc git clone https://github.com/opencontainers/runc
@ -48,7 +47,6 @@ jobs:
timeout_minutes: 5 timeout_minutes: 5
max_attempts: 3 max_attempts: 3
retry_wait_seconds: 120 retry_wait_seconds: 120
retry_on: error
command: | command: |
export export
- name: Identify GitHub tag name - name: Identify GitHub tag name
@ -61,7 +59,6 @@ jobs:
timeout_minutes: 5 timeout_minutes: 5
max_attempts: 3 max_attempts: 3
retry_wait_seconds: 120 retry_wait_seconds: 120
retry_on: error
command: | command: |
echo "##[set-output name=tag;]$(tag_name=${GITHUB_REF#refs/tags/} && echo "${tag_name//+/-}")" echo "##[set-output name=tag;]$(tag_name=${GITHUB_REF#refs/tags/} && echo "${tag_name//+/-}")"
id: identify_tag id: identify_tag
@ -71,7 +68,6 @@ jobs:
timeout_minutes: 60 timeout_minutes: 60
max_attempts: 3 max_attempts: 3
retry_wait_seconds: 120 retry_wait_seconds: 120
retry_on: error
command: | command: |
docker build \ docker build \
--tag ${{ github.repository }}:latest \ --tag ${{ github.repository }}:latest \
@ -85,7 +81,6 @@ jobs:
timeout_minutes: 5 timeout_minutes: 5
max_attempts: 3 max_attempts: 3
retry_wait_seconds: 120 retry_wait_seconds: 120
retry_on: error
command: | command: |
docker images docker images
- name: Push Docker image to Docker Hub - name: Push Docker image to Docker Hub
@ -94,7 +89,6 @@ jobs:
timeout_minutes: 30 timeout_minutes: 30
max_attempts: 3 max_attempts: 3
retry_wait_seconds: 120 retry_wait_seconds: 120
retry_on: error
command: | command: |
docker push ${{ github.repository }}:latest docker push ${{ github.repository }}:latest
docker push ${{ github.repository }}:${{ steps.identify_tag.outputs.tag }} docker push ${{ github.repository }}:${{ steps.identify_tag.outputs.tag }}
@ -104,7 +98,6 @@ jobs:
timeout_minutes: 30 timeout_minutes: 30
max_attempts: 3 max_attempts: 3
retry_wait_seconds: 120 retry_wait_seconds: 120
retry_on: error
command: | command: |
docker push ghcr.io/${{ github.repository }}:latest docker push ghcr.io/${{ github.repository }}:latest
docker push ghcr.io/${{ github.repository }}:${{ steps.identify_tag.outputs.tag }} docker push ghcr.io/${{ github.repository }}:${{ steps.identify_tag.outputs.tag }}
Loading…
Cancel
Save