docs: add labels to docker image. add tag for branch build.

release-notes-05
Meng Zhang 2023-10-28 00:04:16 -07:00 committed by GitHub
parent dadd58573d
commit 3151d9100b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,7 @@ jobs:
${{ env.IMAGE_NAME }}
# generate Docker tags based on the following events/attributes
tags: |
type=raw,value=nightly,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=raw,value={{branch}}-{{sha}}
type=schedule,pattern=nightly
type=schedule,pattern={{date 'YYYYMMDD'}}
type=semver,pattern={{version}}
@ -98,6 +98,7 @@ jobs:
push: true
context: .
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: ${{ steps.cache.outputs.cache-from }}
cache-to: ${{ steps.cache.outputs.cache-to }}