Skip to content

Commit

Permalink
ci: adjust sync
Browse files Browse the repository at this point in the history
Signed-off-by: thxCode <[email protected]>
  • Loading branch information
thxCode committed Oct 18, 2024
1 parent 9b2540c commit 7544ca0
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ defaults:
on:
workflow_dispatch:
inputs:
max-releases:
max_releases:
description: "Maximum number of releases to sync"
required: false
default: 1
type: number
dry-run:
dry_run:
description: "Skip the actual sync"
required: false
default: false
Expand All @@ -41,8 +41,8 @@ jobs:
gitcode-username: "${{ secrets.CI_GITCODE_USERNAME }}"
gitcode-password: "${{ secrets.CI_GITCODE_PASSWORD }}"
gitcode-token: "${{ secrets.CI_GITCODE_TOKEN }}"
max-releases: "${{ inputs.max-releases && inputs.max-releases || '1' }}"
dry-run: "${{ inputs.dry-run && inputs.dry-run || 'false' }}"
max-releases: "${{ inputs.max_releases && inputs.max_releases || '1' }}"
dry-run: "${{ inputs.dry_run && inputs.dry_run || 'false' }}"

gitee:
runs-on: ubuntu-22.04
Expand All @@ -58,23 +58,19 @@ jobs:
with:
gitee-username: "${{ secrets.CI_GITEE_USERNAME }}"
gitee-token: "${{ secrets.CI_GITEE_TOKEN }}"
max-releases: "${{ inputs.max-releases && inputs.max-releases || '1' }}"
dry-run: "${{ inputs.dry-run && inputs.dry-run || 'false' }}"
max-releases: "${{ inputs.max_releases && inputs.max_releases || '1' }}"
dry-run: "${{ inputs.dry_run && inputs.dry_run || 'false' }}"

tencent-cos:
runs-on: ubuntu-22.04
timeout-minutes: 120
steps:
- name: Sync
env:
TENCENTCOS_REGION: "ap-guangzhou"
TENCENTCOS_BUCKET: "gpustack-1303613262"
- name: Sync
uses: gpustack/.github/actions/mirror-release-tencent-cos@main
with:
tencent-secret-id: "${{ secrets.CI_TECENTCOS_SECRET_ID }}"
tencent-secret-key: "${{ secrets.CI_TECENTCOS_SECRET_KEY }}"
tencent-cos-region: "ap-guangzhou"
tencent-cos-bucket: "gpustack-1303613262"
max-releases: "${{ inputs.max-releases && inputs.max-releases || '1' }}"
dry-run: "${{ inputs.dry-run && inputs.dry-run || 'false' }}"
max-releases: "${{ inputs.max_releases && inputs.max_releases || '1' }}"
dry-run: "${{ inputs.dry_run && inputs.dry_run || 'false' }}"

0 comments on commit 7544ca0

Please sign in to comment.