fix(stable): Extracted 2 version tags
The command extracted `28.0.5 28.0` instead of `28.0`. Fixed to use `28.0.5` instead.
This commit is contained in:
parent
f3ac33ae5f
commit
ee9813e4b5
@ -15,12 +15,12 @@ jobs:
|
|||||||
id: extract-version
|
id: extract-version
|
||||||
run: |
|
run: |
|
||||||
export DIGEST=$(curl -s "https://registry.hub.docker.com/v2/repositories/library/nextcloud/tags/?page_size=100" | jq -r '.results[] | select(.name=="stable") .digest')
|
export DIGEST=$(curl -s "https://registry.hub.docker.com/v2/repositories/library/nextcloud/tags/?page_size=100" | jq -r '.results[] | select(.name=="stable") .digest')
|
||||||
export VERSION=$(curl -s "https://registry.hub.docker.com/v2/repositories/library/nextcloud/tags/?page_size=1000" | jq -r ".results[] | select(.name | test(\"^([0-9]+\\\.)+[0-9]+$\")) | select(.digest==\"$DIGEST\").name")
|
export VERSION=$(curl -s "https://registry.hub.docker.com/v2/repositories/library/nextcloud/tags/?page_size=1000" | jq -r '.results[] | select(.name | test("^[0-9]+\\.[0-9]+\\.[0-9]+$")) | select(.digest=="'$DIGEST'").name')
|
||||||
export VERSION_MAJOR=$(curl -s "https://registry.hub.docker.com/v2/repositories/library/nextcloud/tags/?page_size=1000" | jq -r ".results[] | select(.name | test(\"^[0-9]{1,2}$\")) | select(.digest==\"$DIGEST\").name")
|
export VERSION_MAJOR=$(curl -s "https://registry.hub.docker.com/v2/repositories/library/nextcloud/tags/?page_size=1000" | jq -r ".results[] | select(.name | test(\"^[0-9]{1,2}$\")) | select(.digest==\"$DIGEST\").name")
|
||||||
echo "Latest version: $VERSION"
|
echo "Latest version: $VERSION"
|
||||||
echo "Major version: $VERSION_MAJOR"
|
echo "Major version: $VERSION_MAJOR"
|
||||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||||
echo "version-major=${VERSION_MAJOR}" >> $GITHUB_OUTPUT
|
echo "version_major=${VERSION_MAJOR}" >> $GITHUB_OUTPUT
|
||||||
shell: bash
|
shell: bash
|
||||||
# - name: Check if the image was already built
|
# - name: Check if the image was already built
|
||||||
# id: check-build-status
|
# id: check-build-status
|
||||||
@ -59,5 +59,5 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
build-args: NEXTCLOUD_VERSION=${{ steps.extract-version.outputs.version }}
|
build-args: NEXTCLOUD_VERSION=${{ steps.extract-version.outputs.version }}
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
tags: jiriks74/nextcloud-extended:${{ steps.extract-version.outputs.version }},jiriks74/nextcloud-extended:${{ steps.extract-version.outputs.version-major }},jiriks74/nextcloud-extended:stable
|
tags: jiriks74/nextcloud-extended:${{ steps.extract-version.outputs.version }},jiriks74/nextcloud-extended:${{ steps.extract-version.outputs.version_major }},jiriks74/nextcloud-extended:stable
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user