2021-03-23 09:26:35 +01:00
|
|
|
name: conformance
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
|
|
|
|
jobs:
|
2021-06-30 09:20:39 +02:00
|
|
|
run-conformance-test:
|
2021-03-23 09:26:35 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-12-20 16:39:09 +01:00
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
2021-03-23 09:26:35 +01:00
|
|
|
with:
|
2021-12-20 16:39:09 +01:00
|
|
|
fetch-depth: 0
|
|
|
|
-
|
|
|
|
name: Build image
|
|
|
|
uses: docker/bake-action@v1
|
2021-03-23 09:26:35 +01:00
|
|
|
with:
|
2021-12-20 16:39:09 +01:00
|
|
|
targets: image-local
|
|
|
|
-
|
|
|
|
name: Start distribution server
|
2021-03-23 09:26:35 +01:00
|
|
|
run: |
|
|
|
|
IP=`hostname -I | awk '{print $1}'`
|
|
|
|
echo "IP=$IP" >> $GITHUB_ENV
|
|
|
|
echo "OCI_ROOT_URL=http://$IP:5000" >> $GITHUB_ENV
|
2021-12-20 16:39:09 +01:00
|
|
|
DISTRIBUTION_REF="registry:local"
|
|
|
|
docker run --rm -p 5000:5000 -e REGISTRY_STORAGE_DELETE_ENABLED=true -idt "registry:local"
|
|
|
|
-
|
|
|
|
name: Run OCI Distribution Spec conformance tests
|
2021-03-23 09:26:35 +01:00
|
|
|
uses: opencontainers/distribution-spec@main
|
|
|
|
env:
|
|
|
|
OCI_ROOT_URL: ${{ env.OCI_ROOT_URL }}
|
|
|
|
OCI_NAMESPACE: oci-conformance/distribution-test
|
|
|
|
OCI_TEST_PULL: 1
|
|
|
|
OCI_TEST_PUSH: 1
|
|
|
|
OCI_TEST_CONTENT_DISCOVERY: 1
|
|
|
|
OCI_TEST_CONTENT_MANAGEMENT: 1
|
2021-06-30 09:20:39 +02:00
|
|
|
OCI_HIDE_SKIPPED_WORKFLOWS: 1
|