Skip to content

Commit

Permalink
变化:修改docker标签
Browse files Browse the repository at this point in the history
  • Loading branch information
guobao2333 committed Sep 26, 2024
1 parent 6332cf4 commit 52f5551
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=schedule,pattern={{date 'YYYY/MM/DD-HH:mm' tz='Asia/Shanghai'}}
type=semver,pattern={{version}}
type=ref,event=branch
type=ref,event=pr
type=raw,value=${{ github.ref }},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
type=raw,value=${{date 'YYYY/MM/DD-HH:mm' tz='Asia/Shanghai'}},enable=${{ github.event.ref_type == 'tag' }}
type=raw,value=latest,enable=${{ github.event.ref_type == 'tag' }}
# Build and push Docker image with Buildx (don't push on PR)
Expand Down

0 comments on commit 52f5551

Please sign in to comment.