ak13/.gitea/workflows/docker-build.yml
2025-07-21 22:37:18 +08:00

20 lines
426 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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: .