ci(oidc): build isolated imported Login image and reuse real browser acceptance
This commit is contained in:
1 parent
c93468fb60
commit
fcfa59e826
7 files changed
+214
-4
No files matched your search
@@ -0,0 +1,49 @@
|
||||
name: ZitPlane P05-OIDC-06 Imported Login V2 Disposable Image Acceptance
|
||||
|
||||
# Manual-only, isolated runner. No registry publishing or production access.
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
custom_login:
|
||||
name: Build imported Login image and verify real OIDC with owned cleanup
|
||||
runs-on: ubuntu-latest
|
||||
container: node:22-alpine
|
||||
timeout-minutes: 70
|
||||
steps:
|
||||
- name: Install Git and Docker Compose CLI before checkout
|
||||
run: apk add --no-cache git docker-cli docker-cli-compose python3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
github-server-url: https://dev.ivib.cc
|
||||
- name: Frozen imported Login V2 build and local disposable image
|
||||
run: |
|
||||
set -eu
|
||||
sh tests/ci/login_image/build.sh
|
||||
- name: Real Chromium OIDC through custom Login image
|
||||
run: |
|
||||
set -eu
|
||||
export ZITPLANE_OIDC_CUSTOM_LOGIN_CI=1
|
||||
export ZITPLANE_OIDC_CUSTOM_LOGIN_IMAGE="zitplane-login-ci:$GITHUB_RUN_ID"
|
||||
sh tests/ci/oidc_e2e/run.sh
|
||||
- name: Always clean run-owned OIDC state and custom image builder
|
||||
if: always()
|
||||
run: |
|
||||
set +e
|
||||
rc=0
|
||||
if [ -f tests/ci/oidc_e2e/cleanup.sh ]; then
|
||||
sh tests/ci/oidc_e2e/cleanup.sh || rc=1
|
||||
else
|
||||
echo OIDC_CI_CLEANUP_SCRIPT_MISSING >&2
|
||||
rc=1
|
||||
fi
|
||||
if [ -f tests/ci/login_image/cleanup.sh ]; then
|
||||
sh tests/ci/login_image/cleanup.sh || rc=1
|
||||
else
|
||||
echo ZITPLANE_CUSTOM_LOGIN_CLEANUP_SCRIPT_MISSING >&2
|
||||
rc=1
|
||||
fi
|
||||
exit "$rc"
|
||||
Reference in new issue
Block a user