mirror of
https://github.com/project-zot/zot.git
synced 2024-12-30 22:34:13 -05:00
ci: upgrade localstack to v3.3.0 (#2390)
There are performance improvements in recent releases of localstack. 1) install localstack via "pip install" and requires python 3.11 2) also pull a recently pushed localstack docker image to ghcr.io Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
parent
6898b31842
commit
7146826126
4 changed files with 38 additions and 6 deletions
7
.github/actions/setup-localstack/action.yaml
vendored
7
.github/actions/setup-localstack/action.yaml
vendored
|
@ -18,11 +18,14 @@ runs:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ inputs.username }}
|
username: ${{ inputs.username }}
|
||||||
password: ${{ inputs.password }}
|
password: ${{ inputs.password }}
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: '3.11'
|
||||||
- shell: bash
|
- shell: bash
|
||||||
run: |
|
run: |
|
||||||
pip install localstack==2.3.1 # Install LocalStack cli
|
pip install localstack==3.3.0 # 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 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
|
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
|
||||||
|
|
7
.github/workflows/ecosystem-tools.yaml
vendored
7
.github/workflows/ecosystem-tools.yaml
vendored
|
@ -61,11 +61,14 @@ jobs:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ github.token }}
|
password: ${{ github.token }}
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: '3.11'
|
||||||
- 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==3.3.0 awscli-local[ver1] # install LocalStack cli and awslocal
|
||||||
docker pull ghcr.io/project-zot/ci-images/localstack:2.3.1 # Make sure to pull a working version of the image
|
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
|
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
|
||||||
|
|
7
.github/workflows/nightly.yaml
vendored
7
.github/workflows/nightly.yaml
vendored
|
@ -39,11 +39,14 @@ jobs:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ github.token }}
|
password: ${{ github.token }}
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: '3.11'
|
||||||
- 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==3.3.0 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 ghcr.io/project-zot/ci-images/localstack:3.3.0 # Make sure to pull the latest version of the image
|
||||||
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
|
||||||
|
|
23
.github/workflows/sync-3rdparty-images.yaml
vendored
23
.github/workflows/sync-3rdparty-images.yaml
vendored
|
@ -44,3 +44,26 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
oras login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io
|
oras login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io
|
||||||
oras copy ghcr.io/aquasecurity/trivy-db:2 ghcr.io/${{ github.repository_owner }}/trivy-db:2
|
oras copy ghcr.io/aquasecurity/trivy-db:2 ghcr.io/${{ github.repository_owner }}/trivy-db:2
|
||||||
|
sync-localstack:
|
||||||
|
name: 'localstack'
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
localstack_version:
|
||||||
|
- "3.3.0"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Log in to GitHub Docker Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Tag and push localstack to ghcr
|
||||||
|
run: |
|
||||||
|
docker trust inspect localstack:${{ matrix.localstack_version }}
|
||||||
|
docker pull localstack:${{ matrix.localstack_version }}
|
||||||
|
docker tag localstack:${{ matrix.localstack_version }} ghcr.io/${{ github.repository_owner }}/ci-images/localstack:${{ matrix.localstack_version }}
|
||||||
|
docker push ghcr.io/${{ github.repository_owner }}/ci-images/localstack:${{ matrix.localstack_version }}
|
||||||
|
|
Loading…
Reference in a new issue