From e26e3b4ff6daf238aef65b218c1b97abdb8730c2 Mon Sep 17 00:00:00 2001 From: Krishna Permi <40313959+krishnapermi@users.noreply.github.com> Date: Mon, 6 Jul 2026 16:16:22 +0530 Subject: [PATCH] e2e tests: run with podman as well as docker --- .github/workflows/endtoend_tests.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/endtoend_tests.yml b/.github/workflows/endtoend_tests.yml index 9d48ab9..66a4766 100644 --- a/.github/workflows/endtoend_tests.yml +++ b/.github/workflows/endtoend_tests.yml @@ -28,6 +28,9 @@ jobs: - Examples/HelloWorldVapor - Examples/HelloWorldHummingbird - Examples/HelloWorldWithResources + runtime: + - docker + - podman steps: - name: Checkout repository uses: actions/checkout@v4 @@ -38,6 +41,16 @@ jobs: # https://github.com/actions/checkout/issues/766 run: git config --global --add safe.directory ${GITHUB_WORKSPACE} + - name: Configure podman to allow the local registry + if: matrix.runtime == 'podman' + run: | + # The registry service runs over plain HTTP on localhost:5000. + # Podman rejects insecure registries by default, so we register + # localhost:5000 as a trusted insecure source. + sudo mkdir -p /etc/containers/registries.conf.d + printf '[registries.insecure]\nregistries = ["localhost:5000"]\n' | \ + sudo tee /etc/containers/registries.conf.d/local-registry.conf + - name: Install the static SDK run: | swift sdk install \ @@ -57,9 +70,9 @@ jobs: --repository localhost:5000/example \ --from ${{ matrix.from }} - - name: Run the example + - name: Run the example with ${{ matrix.runtime }} run: | - docker run -d --platform linux/amd64 -p 8080:8080 localhost:5000/example + ${{ matrix.runtime }} run -d --platform linux/amd64 -p 8080:8080 localhost:5000/example - name: Check that the service is running run: |