Skip to content

Commit

Permalink
use localstack to test aws upload
Browse files Browse the repository at this point in the history
Signed-off-by: Dweb Fan <[email protected]>
  • Loading branch information
dwebfan committed Jun 2, 2024
1 parent 5c12a16 commit 1419ba9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
GOFLAGS: "-buildvcs=false"
WORKDIR: /go/src/github.com/lomorage/lomo-backup
steps:
- run: ./dockerfiles/run-localstack.sh
- uses: actions/checkout@v4
with:
submodules: true
Expand Down
13 changes: 13 additions & 0 deletions dockerfiles/run-localstack.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

docker run --rm -it -p 4566:4566 -p 4510-4559:4510-4559 localstack/localstack:3.4.0 &

while true; do
if curl localhost:4566; then
echo "Localstack is running!"
break
else
echo "Localstack is not yet ready. Retrying in 5 seconds..."
sleep 5
fi
done

0 comments on commit 1419ba9

Please sign in to comment.