Skip to content

Commit

Permalink
fix(CI): Fixed retry action failing to catch exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
SaptarshiSarkar12 committed Sep 7, 2024
1 parent 3c8ea00 commit 857541d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/dev-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ jobs:
command: |
docker run --detach --rm --privileged --name buildkitd --entrypoint buildkitd moby/buildkit:latest
copa patch -i oraclelinux:9-slim -t 9-slim --addr docker-container://buildkitd --ignore-errors --timeout 10m
docker stop buildkitd
retry_wait_seconds: '30'
on_retry_command: |
docker stop buildkitd
- name: Build Docker image
run: |
docker compose build base
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ jobs:
make
sudo mv dist/linux_amd64/release/copa /usr/local/bin/
- name: Run Copa to patch vulnerabilities
if: matrix.os == 'ubuntu-latest'
uses: nick-fields/retry@v3 # Retry action to handle network issues
with:
timeout_minutes: 15
Expand All @@ -181,8 +180,9 @@ jobs:
command: |
docker run --detach --rm --privileged --name buildkitd --entrypoint buildkitd moby/buildkit:latest
copa patch -i oraclelinux:9-slim -t 9-slim --addr docker-container://buildkitd --ignore-errors --timeout 10m
docker stop buildkitd
retry_wait_seconds: '30'
on_retry_command: |
docker stop buildkitd
# Build and push Docker image with Buildx (don't push on PR and branches created by Dependabot)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
Expand Down

0 comments on commit 857541d

Please sign in to comment.