Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions .github/workflows/endtoend_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
- Examples/HelloWorldVapor
- Examples/HelloWorldHummingbird
- Examples/HelloWorldWithResources
runtime:
- docker
- podman
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -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 \
Expand All @@ -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: |
Expand Down