测试构建插件
Some checks failed
Build and Push Docker Images / build-and-push (backend) (push) Failing after 11s
Build and Push Docker Images / build-and-push (frontend) (push) Has started running

This commit is contained in:
2025-09-03 23:08:12 +08:00
parent 6ee64b1ba3
commit 14543e0c7b

View File

@@ -19,11 +19,14 @@ jobs:
password: ${{ secrets.REGISTRY_PASSWORD }} # 将密码或个人访问令牌存储在 Secrets 中
# 步骤3: 构建 Docker 镜像
- name: Build Docker image
run: |
cd ./backend
docker build -t gitea.zfxt.top/zfxt/haha:latest .
docker push gitea.zfxt.top/zfxt/haha:latest
- name: Build and Push Docker Image
uses: docker/build-push-action@v5 # 确认此插件可用
with:
context: ./backend
file: ./backend/dockerfile
push: true
tags: |
gitea.zfxt.top/zfxt/haha:v1.0