更新发布夜间版本工作流,新增 DOCKER_LATEST 环境变量并调整标签配置

This commit is contained in:
严浩
2024-10-08 18:22:54 +08:00
parent 366f1206ed
commit 9b1be9863c

View File

@ -11,6 +11,7 @@ env:
GHCR_IMAGE_NAME: ${{ github.repository }} GHCR_IMAGE_NAME: ${{ github.repository }}
GHCR_TOKEN: ${{ secrets.GITHUB_TOKEN }} GHCR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GHCR_USERNAME: ${{ github.repository_owner }} GHCR_USERNAME: ${{ github.repository_owner }}
DOCKER_LATEST: nightly
jobs: jobs:
docker: docker:
@ -39,7 +40,7 @@ jobs:
images: | images: |
ghcr.io/${{ env.GHCR_IMAGE_NAME }} ghcr.io/${{ env.GHCR_IMAGE_NAME }}
tags: | tags: |
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }} type=raw,value=${{ env.DOCKER_LATEST }}
type=semver,pattern={{major}} type=semver,pattern={{major}}
type=raw,value=dev,enable=${{ github.ref == 'refs/heads/dev' }} type=raw,value=dev,enable=${{ github.ref == 'refs/heads/dev' }}