ci: use zot localstack image and consolidate on using the setup localstack GH action (#3899)

* ci: use zot localstack image, and consolidate on using the setup localstack GH action

Signed-off-by: Andrei Aaron <andreifdaaron@gmail.com>

* chore: increase zot minimal test timeout

Signed-off-by: Andrei Aaron <andreifdaaron@gmail.com>

* chore: setup latest localstack still available for community

Signed-off-by: Andrei Aaron <andreifdaaron@gmail.com>

---------

Signed-off-by: Andrei Aaron <andreifdaaron@gmail.com>
This commit is contained in:
Andrei Aaron
2026-03-25 23:19:58 +02:00
committed by GitHub
parent 9c7e77e12a
commit 544352858a
4 changed files with 30 additions and 91 deletions
+11 -12
View File
@@ -1,5 +1,5 @@
name: 'Setup localstack service'
description: 'Download & run localstack container'
description: 'Download & run localstack container (does not create S3 buckets; tests or workflows should create resources they need)'
inputs:
# inputs for https://github.com/docker/login-action
username:
@@ -13,26 +13,25 @@ inputs:
runs:
using: "composite"
steps:
- uses: docker/login-action@v3
- uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ inputs.username }}
password: ${{ inputs.password }}
- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
python-version: '3.11'
- shell: bash
run: |
pip install localstack==3.3.0 # Install LocalStack cli
# Below image was copied manually from localstack/localstack:2.2 and uploaded to ghcr
docker pull ghcr.io/project-zot/ci-images/localstack:3.3.0 # Make sure to pull a working version of the image
localstack start -d # Start LocalStack in the background
echo "Waiting for LocalStack startup..." # Wait 30 seconds for the LocalStack container
localstack wait -t 30 # to become ready before timing out
pip install --upgrade pyopenssl
pip install localstack==3.3.0 'awscli-local[ver1]'
# Below image was copied manually from localstack/localstack:community-archive and uploaded to ghcr
docker pull "$IMAGE_NAME" # Make sure to pull a working version of the image
localstack start -d # Start LocalStack in the background
echo "Waiting for LocalStack startup..." # Wait 30 seconds for the LocalStack container
localstack wait -t 30 # to become ready before timing out
echo "Startup complete"
aws --endpoint-url=http://localhost:4566 s3api create-bucket --bucket zot-storage --region us-east-2 --create-bucket-configuration="{\"LocationConstraint\": \"us-east-2\"}"
env:
AWS_ACCESS_KEY_ID: fake
AWS_SECRET_ACCESS_KEY: fake
IMAGE_NAME: ghcr.io/project-zot/ci-images/localstack:community-archive