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