mirror of
https://github.com/keven1024/015.git
synced 2026-05-29 16:39:36 +00:00
chore: enhance publish workflow by adding conditional tag for main branch deployment
This commit is contained in:
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user