Skip to content

Commit

Permalink
feat(workflows): Introduce simple curl test to NGINX workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Jung <[email protected]>
  • Loading branch information
nderjung committed Dec 11, 2023
1 parent 50a4545 commit 4645a1f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/library-nginx1.15.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,33 @@ jobs:
arch: ${{ matrix.arch }}
push: false
output: oci://index.unikraft.io/unikraft.org/nginx:1.15
after: |
# GitHub Actions can only executed with QEMU (via emulation mode)
if [[ ${{ matrix.plat }} != "qemu" ]]; then
exit 0;
fi
export KRAFTKIT_RUNTIME_DIR=/github/workspace/.kraftkit
set -xe;
kraft run \
--detach \
--disable-acceleration \
--plat ${{ matrix.plat }} \
--arch ${{ matrix.arch }} \
--name nginx-${GITHUB_RUN_ID} \
--port 8080:80 \
index.unikraft.io/unikraft.org/nginx:1.15
function cleanup {
kraft logs nginx-${GITHUB_RUN_ID} || true;
kraft rm nginx-${GITHUB_RUN_ID} || true;
}
trap cleanup EXIT
trap cleanup INT
curl -Lv --fail http://localhost:8080
- name: Archive OCI digests
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 4645a1f

Please sign in to comment.