mirror of
https://github.com/project-zot/zot.git
synced 2025-01-13 22:50:38 -05:00
feat(ci): use localstack v3 provider for s3
Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
parent
8609900406
commit
dc868fea9d
2 changed files with 14 additions and 9 deletions
8
.github/actions/setup-localstack/action.yaml
vendored
8
.github/actions/setup-localstack/action.yaml
vendored
|
@ -20,10 +20,10 @@ runs:
|
||||||
password: ${{ inputs.password }}
|
password: ${{ inputs.password }}
|
||||||
- shell: bash
|
- shell: bash
|
||||||
run: |
|
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
|
# 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
|
docker pull localstack/localstack@sha256:1a1089d01cb8a16e72dd9f30a29a65d5310805b54b40ecf26cf3803a7690053d # Make sure to pull a working version of the image
|
||||||
localstack start -d # Start LocalStack in the background
|
PROVIDER_OVERRIDE_S3=v3 localstack start -d # Start LocalStack in the background
|
||||||
|
|
||||||
echo "Waiting for LocalStack startup..." # Wait 30 seconds for the LocalStack container
|
echo "Waiting for LocalStack startup..." # Wait 30 seconds for the LocalStack container
|
||||||
localstack wait -t 30 # to become ready before timing out
|
localstack wait -t 30 # to become ready before timing out
|
||||||
|
@ -33,3 +33,5 @@ runs:
|
||||||
env:
|
env:
|
||||||
AWS_ACCESS_KEY_ID: fake
|
AWS_ACCESS_KEY_ID: fake
|
||||||
AWS_SECRET_ACCESS_KEY: fake
|
AWS_SECRET_ACCESS_KEY: fake
|
||||||
|
|
||||||
|
|
||||||
|
|
15
.github/workflows/nightly.yaml
vendored
15
.github/workflows/nightly.yaml
vendored
|
@ -1,5 +1,7 @@
|
||||||
name: 'Nightly jobs'
|
name: 'Nightly jobs'
|
||||||
on:
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: [main]
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '30 1 * * *'
|
- cron: '30 1 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
@ -43,13 +45,14 @@ jobs:
|
||||||
- name: Install localstack
|
- name: Install localstack
|
||||||
run: |
|
run: |
|
||||||
pip install --upgrade pyopenssl
|
pip install --upgrade pyopenssl
|
||||||
pip install localstack==2.3.1 awscli-local[ver1] # install LocalStack cli and awslocal
|
pip install localstack==2.3.2 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
|
docker pull localstack/localstack@sha256:1a1089d01cb8a16e72dd9f30a29a65d5310805b54b40ecf26cf3803a7690053d # Make sure to pull a working version of the image
|
||||||
localstack start -d # Start LocalStack in the background
|
PROVIDER_OVERRIDE_S3=v3 localstack start -d # Start LocalStack in the background
|
||||||
|
localstack start -d # Start LocalStack in the background
|
||||||
echo "Waiting for LocalStack startup..." # Wait 30 seconds for the LocalStack container
|
echo "Waiting for LocalStack startup..." # Wait 30 seconds for the LocalStack container
|
||||||
localstack wait -t 30 # to become ready before timing out
|
localstack wait -t 30 # to become ready before timing out
|
||||||
echo "Startup complete"
|
echo "Startup complete"
|
||||||
|
|
||||||
- name: Run blackbox nightly dedupe tests
|
- name: Run blackbox nightly dedupe tests
|
||||||
run: |
|
run: |
|
||||||
# test restoring s3 blobs after cache is deleted
|
# test restoring s3 blobs after cache is deleted
|
||||||
|
|
Loading…
Add table
Reference in a new issue