Skip to content

Commit

Permalink
feat(ci): use localstack v3 provider for s3
Browse files Browse the repository at this point in the history
Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
  • Loading branch information
eusebiu-constantin-petu-dbk committed Oct 19, 2023
1 parent a44ca57 commit 70ac7f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
8 changes: 5 additions & 3 deletions .github/actions/setup-localstack/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ runs:
password: ${{ inputs.password }}
- shell: bash
run: |
pip install localstack==2.3.1 # Install LocalStack cli
pip install localstack==2.3.2 # 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:2.3.1 # Make sure to pull a working version of the image
localstack start -d # Start LocalStack in the background
docker pull localstack/localstack:sha256:1a1089d01cb8a16e72dd9f30a29a65d5310805b54b40ecf26cf3803a7690053d # Make sure to pull a working version of the image
PROVIDER_OVERRIDE_S3=v3 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
Expand All @@ -33,3 +33,5 @@ runs:
env:
AWS_ACCESS_KEY_ID: fake
AWS_SECRET_ACCESS_KEY: fake


13 changes: 3 additions & 10 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: 'Nightly jobs'
on:
pull_request:
branches: [main]
schedule:
- cron: '30 1 * * *'
workflow_dispatch:
Expand Down Expand Up @@ -40,16 +42,7 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Install localstack
run: |
pip install --upgrade pyopenssl
pip install localstack==2.3.1 awscli-local[ver1] # install LocalStack cli and awslocal
docker pull ghcr.io/project-zot/ci-images/localstack:2.3.1 # Make sure to pull the latest 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"
- uses: ./.github/actions/setup-localstack
- name: Run blackbox nightly dedupe tests
run: |
# test restoring s3 blobs after cache is deleted
Expand Down

0 comments on commit 70ac7f6

Please sign in to comment.