mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-04-18 19:49:30 +03:00
chore: update docker build workflow
Keep the 'v' in app version so we are able to query to GitHub release api to fetch its release information
This commit is contained in:
parent
fa33d3f66e
commit
a22e807d2a
1 changed files with 1 additions and 2 deletions
3
.github/workflows/docker-build.yml
vendored
3
.github/workflows/docker-build.yml
vendored
|
@ -33,14 +33,13 @@ jobs:
|
||||||
##
|
##
|
||||||
if [[ '${{ github.ref }}' == *"refs/tags/"* ]]; then
|
if [[ '${{ github.ref }}' == *"refs/tags/"* ]]; then
|
||||||
github_tag="${GITHUB_REF#refs/*/}"
|
github_tag="${GITHUB_REF#refs/*/}"
|
||||||
|
app_version=${github_tag}
|
||||||
|
|
||||||
SEMVER_REGEX="^v(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(\\-[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$"
|
SEMVER_REGEX="^v(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(\\-[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$"
|
||||||
if [[ "$github_tag" =~ $SEMVER_REGEX ]]; then
|
if [[ "$github_tag" =~ $SEMVER_REGEX ]]; then
|
||||||
github_tag=$(echo "${github_tag}" | sed 's/^v//')
|
github_tag=$(echo "${github_tag}" | sed 's/^v//')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
app_version=${github_tag}
|
|
||||||
|
|
||||||
container_images=$(cat <<END_HEREDOC
|
container_images=$(cat <<END_HEREDOC
|
||||||
${base}:${github_tag}
|
${base}:${github_tag}
|
||||||
END_HEREDOC
|
END_HEREDOC
|
||||||
|
|
Loading…
Add table
Reference in a new issue