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