Always push latest for Docker.
This commit is contained in:
10
.github/workflows/cd.yml
vendored
10
.github/workflows/cd.yml
vendored
@@ -54,7 +54,8 @@ jobs:
|
|||||||
VERSION="${INPUT#v}"
|
VERSION="${INPUT#v}"
|
||||||
MAJOR=$(echo "$VERSION" | cut -d. -f1)
|
MAJOR=$(echo "$VERSION" | cut -d. -f1)
|
||||||
MINOR=$(echo "$VERSION" | cut -d. -f2)
|
MINOR=$(echo "$VERSION" | cut -d. -f2)
|
||||||
echo "version_tags=${VERSION},${MAJOR}.${MINOR},${MAJOR}" >> $GITHUB_ENV
|
# Include latest explicitly
|
||||||
|
echo "version_tags=${VERSION},${MAJOR}.${MINOR},${MAJOR},latest" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
echo "version_tags=" >> $GITHUB_ENV
|
echo "version_tags=" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
@@ -69,17 +70,16 @@ jobs:
|
|||||||
flavor: |
|
flavor: |
|
||||||
latest=auto
|
latest=auto
|
||||||
tags: |
|
tags: |
|
||||||
# Semver tags from real Git tags
|
# From real Git tags (v1.2.3)
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
type=semver,pattern={{major}}
|
type=semver,pattern={{major}}
|
||||||
|
|
||||||
# Manual input derived tags
|
# Manual input tags
|
||||||
type=raw,value=${{ env.version_tags }},enable=${{ env.version_tags != '' }}
|
type=raw,value=${{ env.version_tags }},enable=${{ env.version_tags != '' }}
|
||||||
|
|
||||||
# Fallbacks for branches/PRs
|
# Fallbacks
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=ref,event=pr
|
|
||||||
type=sha
|
type=sha
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
|
|||||||
Reference in New Issue
Block a user