Files
panxiao81 0571e64b1a
test / shell (pull_request) Successful in 1m7s
test / python (pull_request) Successful in 2m5s
test / go (pull_request) Successful in 5m32s
ci: 使用 Pod 后端发布镜像
2026-09-24 07:44:46 +00:00

37 lines
886 B
YAML

---
name: publish controller image
on:
push:
branches: [main]
paths:
- '.gitea/workflows/publish-images.yml'
- 'container/controller.Dockerfile'
- 'cmd/**'
- 'internal/**'
- 'scripts/publish-image'
- 'go.mod'
- 'go.sum'
workflow_dispatch:
jobs:
publish-images:
name: publish-controller
runs-on: [self-hosted, pod]
timeout-minutes: 45
permissions:
contents: read
env:
PUSH_REGISTRY: zot-push.ad.ddupan.top
PULL_REGISTRY: zot.ad.ddupan.top
IMAGE_NAME: controller
IMAGE_REPOSITORY: panxiao81/gitea-dynamic-runner-controller
IMAGE_DOCKERFILE: container/controller.Dockerfile
SPIRE_AGENT_SOCKET: /run/spire/agent-sockets/spire-agent.sock
steps:
- uses: actions/checkout@v4
- name: Build and publish
shell: bash
run: scripts/publish-image