添加动态 Pod Runner 冒烟测试
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
name: dynamic Pod smoke test
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
paths:
|
||||
- .gitea/workflows/pod-smoke.yml
|
||||
|
||||
jobs:
|
||||
pod-smoke:
|
||||
name: pod-smoke
|
||||
runs-on: [self-hosted, pod]
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- name: Verify disposable host environment
|
||||
run: |
|
||||
test -S /run/spire/agent-sockets/spire-agent.sock
|
||||
/opt/spire/bin/spire-agent api fetch jwt \
|
||||
-audience ci-smoke \
|
||||
-socketPath /run/spire/agent-sockets/spire-agent.sock \
|
||||
>/dev/null
|
||||
test "$(id -u)" = 0
|
||||
Reference in New Issue
Block a user