chore: enhance publish workflow by adding conditional tag for main branch deployment

This commit is contained in:
keven1024
2026-03-07 10:06:38 +08:00
parent 62443f38a4
commit 72560cf233

View File

@@ -17,11 +17,12 @@ jobs:
username: fudaoyuanicu
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: docker/metadata-action@v5
id: meta
with:
images: fudaoyuanicu/015-app
tags: |
type=ref,event=tag
type=raw,value=latest
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
- name: Set build time
id: build-time
run: |