Skip to content

Commit 95a2607

Browse files
authored
Merge pull request #179 from metalbear-co/fix-ci-demo
fix ci demo
2 parents 6117c02 + 214029b commit 95a2607

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/ci-demo-shop-mirrord-vs-baseline.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
spec:
8383
containers:
8484
- name: localstack
85-
image: localstack/localstack:latest
85+
image: localstack/localstack:4.4
8686
env:
8787
- name: SERVICES
8888
value: "sqs"
@@ -106,9 +106,13 @@ jobs:
106106
107107
kubectl wait --for=condition=Ready pod/localstack --namespace=infra --timeout=3m
108108
109-
# Create SQS queue
110-
kubectl exec -n infra localstack -- \
111-
awslocal sqs create-queue --queue-name payments --region us-east-1
109+
# Create SQS queue (retry in case LocalStack is still initializing)
110+
for i in $(seq 1 10); do
111+
kubectl exec -n infra localstack -- \
112+
awslocal sqs create-queue --queue-name payments --region us-east-1 && break
113+
echo "Attempt $i failed, retrying in 5s..."
114+
sleep 5
115+
done
112116
113117
- name: Build Docker images
114118
run: |

0 commit comments

Comments
 (0)