Skip to content

Commit

Permalink
loop for garbage collection added
Browse files Browse the repository at this point in the history
  • Loading branch information
mehedikhan72 committed Aug 26, 2024
1 parent 1c9d85d commit 830e450
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ jobs:
- name: Remove Garbage
run: doctl registry garbage-collection start pathphindr --force

- name: Wait for Garbage Collection to Complete
run: |
while [ "$(doctl registry garbage-collection list | grep active)" ]; do
echo "Garbage collection in progress, waiting..."
sleep 30 # Wait for 30 seconds before checking again
done
- name: Push image to DigitalOcean Container Registry
run: docker push $(echo $REGISTRY)/$(echo $IMAGE_NAME):$(echo $GITHUB_SHA | head -c7)

Expand Down

0 comments on commit 830e450

Please sign in to comment.