fix: update tag pattern in release workflow and set default tag to 'latest'
This commit is contained in:
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
@@ -3,6 +3,7 @@ name: Release Docker Image
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
|
- '[0-9][0-9][0-9][0-9].[0-9][0-9].[0-9][0-9]'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: docker.io
|
REGISTRY: docker.io
|
||||||
@@ -67,7 +68,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags || 'latest' }}
|
||||||
labels: |
|
labels: |
|
||||||
${{ steps.meta.outputs.labels }}
|
${{ steps.meta.outputs.labels }}
|
||||||
org.opencontainers.image.description=$(cat README.md | head -20 | tr '\n' ' ')
|
org.opencontainers.image.description=$(cat README.md | head -20 | tr '\n' ' ')
|
||||||
|
|||||||
Reference in New Issue
Block a user