Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21aabe162f
|
||
|
|
cbfcb10143 | ||
|
|
3ec528623a
|
||
|
|
11669ea81a |
@@ -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
|
||||||
@@ -7,7 +7,9 @@ COPY src ./src
|
|||||||
RUN python -m venv /venv && /venv/bin/pip install --no-cache-dir .
|
RUN python -m venv /venv && /venv/bin/pip install --no-cache-dir .
|
||||||
|
|
||||||
FROM python:3.12.11-alpine3.22
|
FROM python:3.12.11-alpine3.22
|
||||||
RUN addgroup -S -g 65532 runner && adduser -S -D -H -u 65532 -G runner runner
|
RUN addgroup -S -g 65532 runner \
|
||||||
|
&& adduser -S -D -H -u 65532 -G runner runner \
|
||||||
|
&& install -d -o 65532 -g 65532 /var/run/secrets/kubernetes.io/serviceaccount
|
||||||
COPY --from=build /venv /venv
|
COPY --from=build /venv /venv
|
||||||
COPY --from=spire /opt/spire/bin/spire-agent /opt/spire/bin/spire-agent
|
COPY --from=spire /opt/spire/bin/spire-agent /opt/spire/bin/spire-agent
|
||||||
USER 65532:65532
|
USER 65532:65532
|
||||||
|
|||||||
Reference in New Issue
Block a user