Compare commits

..

2 Commits

Author SHA1 Message Date
小贺
bc721287df 变更变量存储位置
All checks were successful
Build and Push Docker Images / build-and-push (backend) (push) Successful in 1m21s
Build and Push Docker Images / build-and-push (frontend) (push) Successful in 17s
2025-09-04 15:47:10 +08:00
小贺
f609e1725f 精简镜像 2025-09-04 15:47:10 +08:00

View File

@@ -25,7 +25,7 @@ jobs:
uses: docker/login-action@v3
with:
registry: gitea.zfxt.top
username: ${{ secrets.REGISTRY_USERNAME }}
username: ${{ vars.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
# 为后端服务生成元数据
@@ -37,12 +37,8 @@ jobs:
images: gitea.zfxt.top/zfxt/backend
tags: |
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
type=sha,prefix=,suffix=,enable=true
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
# 为前端服务生成元数据
- name: Extract metadata for frontend
@@ -53,12 +49,8 @@ jobs:
images: gitea.zfxt.top/zfxt/frontend
tags: |
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
type=sha,prefix=,suffix=,enable=true
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
# 构建和推送后端镜像
- name: Build and push backend image