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 12, 2023
1 parent 50a4545 commit 1c879ce
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/library-nginx1.15.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,34 @@ 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_LOG_LEVEL=debug
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 1c879ce

Please sign in to comment.