forked from novuhq/novu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
32 lines (30 loc) 路 969 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Start LocalStack
description: Sets up the LocalStack
runs:
using: composite
steps:
- name: Start LocalStack
shell: bash
env:
AWS_DEFAULT_REGION: us-east-1
DEFAULT_REGION: us-east-1
AWS_ACCOUNT_ID: '000000000000'
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test
AWS_EC2_METADATA_DISABLED: true
working-directory: docker/local
run: |
docker-compose -f docker-compose.localstack.yml up -d
sleep 10
max_retry=30
counter=0
until $command
do
sleep 1
[[ counter -eq $max_retry ]] && echo "Failed!" && exit 1
aws --endpoint-url=http://127.0.0.1:4566 s3 ls
echo "Trying again. Try #$counter"
((counter++))
done
docker-compose -f docker-compose.localstack.yml logs --tail="all"
aws --endpoint-url=http://127.0.0.1:4566 --cli-connect-timeout 600 s3 mb s3://novu-test