Skip to content

Commit

Permalink
ci: Deploy script works with fish
Browse files Browse the repository at this point in the history
  • Loading branch information
m1sk9 committed Nov 5, 2024
1 parent b52c0ca commit e2ae8ee
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,9 @@ jobs:
script: |
cd compose
git pull origin main
find . -type f -name "compose.yaml" | while read -r compose_file; do
dir=$(dirname "$compose_file")
echo "Executing in directory: $dir"
(cd "$dir" && docker compose up -d --force-recreate --build)
if [ $? -eq 0 ]; then
echo "Success: $dir"
else
echo "Failed: $dir"
fi
done
for dir in (find . -name 'compose.yaml' -exec dirname {} \;)
echo "Running docker compose in $dir"
cd $dir
docker compose up -d --force-recreate --build
cd -
end

0 comments on commit e2ae8ee

Please sign in to comment.