Skip to content

Commit

Permalink
ci: parameterize registry and add zot as another candidate
Browse files Browse the repository at this point in the history
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
  • Loading branch information
rchincha committed Dec 1, 2022
1 parent b89736e commit 443bd27
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
strategy:
matrix:
go-version: [1.19]
registry:
- ghcr.io/oras-project/registry:v1.0.0-rc.2
- ghcr.io/project-zot/zot-minimal-linux-amd64:latest
fail-fast: true
steps:
- name: Checkout
Expand Down Expand Up @@ -57,7 +60,7 @@ jobs:
--env REGISTRY_AUTH_HTPASSWD_PATH=/etc/docker/registry/passwd \
--mount type=bind,source=$mnt_root/docker,target=/opt/data/registry-root-dir/docker \
--mount type=bind,source=$mnt_root/passwd_bcrypt,target=/etc/docker/registry/passwd \
ghcr.io/oras-project/registry:v1.0.0-rc.2
${{ matrix.registry }}
ginkgo -r -p --succinct suite
docker kill oras-e2e || true
env:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/ecosystem.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "OCI Ecosystem Compatibility"

on:
push:
branches:
- main
pull_request:
branches: [main]
release:
types:
- published

permissions: read-all

jobs:
oci-registry:
name: Check OCI registry
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19.x
- name: Install dependencies
run: |
apt-get update && apt-get -y install curl
- name: Start OCI registry
run: |
docker run -p 5000:5000 ghcr.io/project-zot/zot-minimal-linux-amd64:latest
while true; do \
curl -f http://localhost:5000/v2/; \
if [ $? -eq 0 ]; then \
break; \
fi; \
sleep 1; \
done
- name:

0 comments on commit 443bd27

Please sign in to comment.