mirror of
https://github.com/yanhao98/docker-example.git
synced 2025-07-12 23:50:49 +08:00
更新发布夜间版本工作流,新增 DOCKER_LATEST 环境变量并调整标签配置
This commit is contained in:
3
.github/workflows/release-nightly.yaml
vendored
3
.github/workflows/release-nightly.yaml
vendored
@ -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' }}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user