feat: 改成 docker action

This commit is contained in:
Jeffery
2026-03-20 14:18:53 +08:00
parent 0d7cdd65ca
commit ea8b72ce8f
3 changed files with 29 additions and 27 deletions

View File

@@ -23,30 +23,5 @@ inputs:
required: false
default: 'false'
runs:
using: 'composite'
steps:
- name: 清理舊版本
id: cleanup
shell: bash
run: |
chmod +x "${{ github.action_path }}/cleanup-releases.sh"
"${{ github.action_path }}/cleanup-releases.sh" \
"${{ inputs.gitea-server }}" \
"${{ inputs.repository }}" \
"${{ inputs.token }}" \
"${{ inputs.keep-count }}" \
"${{ inputs.dry-run }}"
- name: 清理舊映像
id: cleanup-images
if: inputs.package-name != ''
shell: bash
run: |
chmod +x "${{ github.action_path }}/cleanup-images.sh"
"${{ github.action_path }}/cleanup-images.sh" \
"${{ inputs.gitea-server }}" \
"${{ inputs.repository }}" \
"${{ inputs.package-name }}" \
"${{ inputs.token }}" \
"${{ inputs.keep-count }}" \
"${{ inputs.dry-run }}"
using: 'docker'
image: 'Dockerfile'