1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-06-10 11:12:21 +00:00

Try to fix this quote handling again

Unsure why this works but it does 🤷‍♂️
This commit is contained in:
Brenden Matthews 2024-05-02 14:43:02 -04:00
parent a5cc142bba
commit 2578be2447

View File

@ -58,12 +58,12 @@ jobs:
VERSION_TAG=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
# Strip "v" prefix from tag name
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION_TAG=$(echo $VERSION_TAG | sed -e 's/^v//')
[[ "${{ github.ref }}" == refs/tags/* ]] && VERSION_TAG=$(echo $VERSION_TAG | sed -e 's/^v//')
image_tags+=("--tag" "$DOCKERHUB_IMAGE_ID:$VERSION_TAG")
# tag as latest on releases
[[ "$RELEASE" == "ON" ]] && image_tags+=("--tag" "$DOCKERHUB_IMAGE_ID:latest")
[[ "$RELEASE" == ON ]] && image_tags+=("--tag" "$DOCKERHUB_IMAGE_ID:latest")
# Only build amd64 on PRs, build all platforms on main. The arm builds
# take far too long.
@ -72,7 +72,7 @@ jobs:
cache_tag="pr-cache"
# Only push on main
[[ "${{ github.ref }}" == "refs/head/main" ]] \
[[ "${{ github.ref }}" == refs/head/main ]] \
&& push_image="--push" \
&& image_platforms="--platform linux/arm/v7,linux/arm64/v8,linux/amd64" \
&& cache_tag="main-cache"