This commit is contained in:
cheney
2025-07-21 22:37:18 +08:00
parent 6ff6c0e8b0
commit 59815d685f
4 changed files with 50 additions and 3 deletions
+20
View File
@@ -0,0 +1,20 @@
name: Build and Push Docker Image
on:
push:
branches:
- main # 只在 main 分支推送时触发
tags:
- v* # 推送 v* 标签时也触发(如 v1.0.0)
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build and Push Docker Image
uses: docker/build-push-action@v5
with:
context: .