测试构建插件
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user