mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 20:00:02 +00:00
ci: Add retry to docker pull to allow for manifest to propogate (#17303)
This commit is contained in:
@@ -24,12 +24,15 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
|
||||||
- name: Pull Docker image
|
- name: Pull Docker image with retry
|
||||||
run: |
|
run: |
|
||||||
docker pull ${{ inputs.image_ref }}
|
for i in {1..4}; do
|
||||||
|
docker pull "${{ inputs.image_ref }}" && break
|
||||||
|
[ $i -lt 4 ] && echo "Retry $i failed, waiting..." && sleep 15
|
||||||
|
done
|
||||||
|
|
||||||
- name: Run Trivy vulnerability scanner
|
- name: Run Trivy vulnerability scanner
|
||||||
uses: aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5 # v0.30.0
|
uses: aquasecurity/trivy-action@dc5a429b52fcf669ce959baa2c2dd26090d2a6c4 # v0.30.0
|
||||||
with:
|
with:
|
||||||
image-ref: ${{ inputs.image_ref }}
|
image-ref: ${{ inputs.image_ref }}
|
||||||
format: 'json'
|
format: 'json'
|
||||||
|
|||||||
Reference in New Issue
Block a user