测试是否元信息出错
Some checks failed
Build and Push Docker Images / build-and-push (backend) (push) Failing after 2m5s
Build and Push Docker Images / build-and-push (frontend) (push) Failing after 2m13s

This commit is contained in:
小贺
2025-09-03 21:49:19 +08:00
parent 2e31c0a3d5
commit c333fde2e3

View File

@@ -28,17 +28,17 @@ jobs:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Extract metadata for backend
if: matrix.service == 'backend'
id: meta-backend
uses: docker/metadata-action@v5
with:
images: gitea.zfxt.top/zfxt/backend
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
# - name: Extract metadata for backend
# if: matrix.service == 'backend'
# id: meta-backend
# uses: docker/metadata-action@v5
# with:
# images: gitea.zfxt.top/zfxt/backend
# tags: |
# type=ref,event=branch
# type=ref,event=pr
# type=semver,pattern={{version}}
# type=semver,pattern={{major}}.{{minor}}
- name: Extract metadata for frontend
if: matrix.service == 'frontend'
@@ -59,7 +59,7 @@ jobs:
context: ./backend
file: ./backend/dockerfile
push: true
tags: ${{ steps.meta-backend.outputs.tags }}
tags: "gitea.zfxt.top/zfxt/backend:latest"
labels: ${{ steps.meta-backend.outputs.labels }}
- name: Build and push frontend image