sqlite-web 0.7.2
gitea.db
action_run_job
Create
Query
access
access_token
action
action_artifact
action_run
action_run_index
action_run_job
action_runner
action_runner_token
action_schedule
action_schedule_spec
action_task
action_task_output
action_task_step
action_tasks_version
action_variable
app_state
attachment
auth_token
badge
branch
collaboration
comment
commit_status
commit_status_index
commit_status_summary
commit_sync_log
commit_sync_status
dbfs_data
dbfs_meta
deploy_key
email_address
email_hash
external_login_user
follow
gpg_key
gpg_key_import
hook_task
issue
issue_assignees
issue_content_history
issue_dependency
issue_index
issue_label
issue_pin
issue_user
issue_watch
label
language_stat
lfs_lock
lfs_meta_object
login_source
milestone
mirror
notice
notification
oauth2_application
oauth2_authorization_code
oauth2_grant
org_user
package
package_blob
package_blob_upload
package_cleanup_rule
package_file
package_property
package_version
project
project_board
project_issue
protected_branch
protected_tag
public_key
pull_auto_merge
pull_request
push_mirror
reaction
release
renamed_branch
repo_archiver
repo_hidden_file
repo_indexer_status
repo_license
repo_redirect
repo_topic
repo_transfer
repo_unit
repository
review
review_state
secret
session
sqlite_sequence
star
stopwatch
system_setting
task
team
team_invite
team_repo
team_unit
team_user
topic
tracked_time
two_factor
upload
user
user_badge
user_blocking
user_open_id
user_redirect
user_setting
version
watch
webauthn_credential
webhook
Toggle helper tables
Structure
Content
Query
Insert
Drop
Import
Export
Delete row 9210 from action_run_job
id
9210
run_id
7416
repo_id
6
owner_id
5
commit_sha
67078f9a95f53530156ad27027eafe15a3126e89
is_fork_pull_request
0
name
自动回滚
attempt
1
workflow_payload
name: Deploy to Aliyun "on": push:
name: Deploy to Aliyun "on": push: branches: [main] tags: ['v*'] workflow_dispatch: inputs: environment: description: '部署环境' required: true default: 'production' type: choice options: - production skip_tests: description: '跳过测试(紧急修复)' required: false default: false type: boolean version: description: '部署版本号(手动输入)' required: false type: string env: IMAGE_PREFIX: ${{ github.repository_owner }}/juhi NODE_VERSION: "20" PNPM_VERSION: "8" REGISTRY: ghcr.io jobs: rollback-on-failure: name: 自动回滚 runs-on: ubuntu-latest if: failure() && needs.deploy-aliyun.result == 'failure' steps: - name: 配置 SSH uses: webfactory/ssh-agent@v0.8.0 with: ssh-private-key: ${{ secrets.ALIYUN_SSH_PRIVATE_KEY }} - name: 执行回滚 run: "ssh $USER@$HOST << 'EOF'\n cd /opt/juhi\n \n echo \"==========================================\"\n echo \"⚠️ 部署失败,执行自动回滚\"\n echo \"==========================================\"\n \n # 获取上一版本\n PREV_VERSION=$(tail -1 .deploy-history 2>/dev/null | cut -d'|' -f2)\n \n if [ -z \"$PREV_VERSION\" ]; then\n echo \"❌ 无法获取上一版本,需要手动回滚\"\n exit 1\n fi\n \n echo \"回滚到版本:$PREV_VERSION\"\n \n # 使用回滚脚本\n if [ -f \"./scripts/rollback.sh\" ]; then\n chmod +x ./scripts/rollback.sh\n ./scripts/rollback.sh --version 1 --confirm\n else\n # 备用回滚逻辑\n docker compose -f docker-compose.prod.yml pull api frontend:$PREV_VERSION\n docker compose -f docker-compose.prod.yml up -d --no-deps api frontend\n fi\n \n echo \"✅ 回滚完成\"\nEOF\n" env: HOST: ${{ secrets.ALIYUN_HOST }} USER: ${{ secrets.ALIYUN_USER }} - name: 发送回滚通知 run: | echo "## ⚠️ 自动回滚" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY echo "- 原因:部署失败" >> $GITHUB_STEP_SUMMARY echo "- 状态:已回滚到上一版本" >> $GITHUB_STEP_SUMMARY timeout-minutes: "10"
...
job_id
rollback-on-failure
needs
["deploy-aliyun"]
runs_on
["ubuntu-latest"]
task_id
8001
status
4
started
1774263670
stopped
1774263670
created
1774262376
updated
1774263671
raw_concurrency
is_concurrency_evaluated
1
concurrency_group
concurrency_cancel
0
Delete
Cancel