Skip to content

Commit

Permalink
Fixed the creation of arm packages in the github action (#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
yenienserrano authored Feb 5, 2025
1 parent 2b18a5a commit 1eff6a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions dev-tools/test-packages/test-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,18 @@ clean() {
# This is done because in the construction of packages arm sometimes fails because it is not finished destroying the container and when trying to delete the image fails because it is in use.
MAX_RETRIES=30
RETRY_COUNT=0
while docker ps --format "{{.Names}}" | grep $CONTAINER_NAME; do
echo "Waiting for the container ($CONTAINER_NAME) to be removed"
while docker ps -a --format "{{.Names}}" | grep $CONTAINER_NAME; do
echo "The $(docker ps -a --format "{{.Names}}" | grep $CONTAINER_NAME) container has not been removed yet. Retry number $RETRY_COUNT."
if [ $RETRY_COUNT -ge $MAX_RETRIES ]; then
echo "WARNING: Maximum retries reached while waiting for container to stop"
break
fi
sleep 2
RETRY_COUNT=$((RETRY_COUNT + 1))
done
docker rmi $CONTAINER_NAME
echo "Container removed. Removing the image"
docker rmi -f $CONTAINER_NAME
}

# Check if files exist and are owned by wazuh-dashboard
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1eff6a8

Please sign in to comment.