Skip to content

Commit

Permalink
Try to fix this quote handling again
Browse files Browse the repository at this point in the history
Unsure why this works but it does 🤷‍♂️
  • Loading branch information
brndnmtthws committed May 2, 2024
1 parent a5cc142 commit 2578be2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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"
Expand Down

0 comments on commit 2578be2

Please sign in to comment.