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