Compare commits
2 Commits
v1.0.1
...
1bb91aab66
| Author | SHA1 | Date | |
|---|---|---|---|
| 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: ${{ vars.REGISTRY_USERNAME }}
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
# 为后端服务生成元数据
|
# 为后端服务生成元数据
|
||||||
@@ -37,8 +37,12 @@ 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=ref,event=tag
|
type=sha,prefix=,suffix=,enable=true
|
||||||
|
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
|
||||||
@@ -49,8 +53,12 @@ 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=ref,event=tag
|
type=sha,prefix=,suffix=,enable=true
|
||||||
|
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