mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-02-06 05:58:36 +00:00
Fix this env var handling (derp)
This commit is contained in:
parent
6a248a94d2
commit
a5cc142bba
18
.github/workflows/docker.yaml
vendored
18
.github/workflows/docker.yaml
vendored
@ -62,22 +62,20 @@ jobs:
|
|||||||
|
|
||||||
image_tags+=("--tag" "$DOCKERHUB_IMAGE_ID:$VERSION_TAG")
|
image_tags+=("--tag" "$DOCKERHUB_IMAGE_ID:$VERSION_TAG")
|
||||||
|
|
||||||
if [ "$RELEASE" == "ON" ]; then
|
# tag as latest on releases
|
||||||
# tag as latest on releases
|
[[ "$RELEASE" == "ON" ]] && image_tags+=("--tag" "$DOCKERHUB_IMAGE_ID:latest")
|
||||||
image_tags+=("--tag" "$DOCKERHUB_IMAGE_ID:latest")
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Only build amd64 on PRs, build all platforms on main. The arm builds
|
# Only build amd64 on PRs, build all platforms on main. The arm builds
|
||||||
# take far too long.
|
# take far too long.
|
||||||
image_platforms="--platform linux/amd64"
|
image_platforms="--platform linux/amd64"
|
||||||
push_image=""
|
push_image=""
|
||||||
cache_tag="pr-cache"
|
cache_tag="pr-cache"
|
||||||
if [ "${{ github.ref }}" == "refs/head/main" ]; then
|
|
||||||
# Only push on main
|
# Only push on main
|
||||||
push_image="--push"
|
[[ "${{ github.ref }}" == "refs/head/main" ]] \
|
||||||
image_platforms="--platform linux/arm/v7,linux/arm64/v8,linux/amd64"
|
&& push_image="--push" \
|
||||||
cache_tag="main-cache"
|
&& image_platforms="--platform linux/arm/v7,linux/arm64/v8,linux/amd64" \
|
||||||
fi
|
&& cache_tag="main-cache"
|
||||||
|
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
${push_image} \
|
${push_image} \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user