From 8b6e058cead66da1c817061e23747a6c38110692 Mon Sep 17 00:00:00 2001 From: tobi Date: Sat, 12 Oct 2024 16:32:22 +0200 Subject: [PATCH] [chore/bugfix] goreleaser make previous_tag cmd busybox-compatible --- .drone.yml | 4 ++-- CONTRIBUTING.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index ae09a9083..7f9253593 100644 --- a/.drone.yml +++ b/.drone.yml @@ -113,7 +113,7 @@ steps: commands: # Create a snapshot build with GoReleaser. - git fetch --tags - - GORELEASER_PREVIOUS_TAG=$(git tag -l | grep -v rc | sort -V --reverse | head -n 1) goreleaser release --clean --snapshot + - GORELEASER_PREVIOUS_TAG=$(git tag -l | grep -v rc | sort -V -r | head -n 1) goreleaser release --clean --snapshot # Login to Docker, push Docker image snapshots + manifests. - /go/dockerlogin.sh @@ -156,7 +156,7 @@ steps: commands: - git fetch --tags - /go/dockerlogin.sh - - GORELEASER_PREVIOUS_TAG=$(git tag -l | grep -v rc | sort -V --reverse | head -n 1) goreleaser release --clean + - GORELEASER_PREVIOUS_TAG=$(git tag -l | grep -v rc | sort -V -r | head -n 1) goreleaser release --clean when: event: include: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ee5e13918..37b2608bb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -195,7 +195,7 @@ Then install Node and Yarn as described in [Stylesheet / Web dev](#stylesheet--w Finally, to create a snapshot build, do: ```bash -GORELEASER_PREVIOUS_TAG=$(git tag -l | grep -v rc | sort -V --reverse | head -n 1) goreleaser --clean --snapshot +GORELEASER_PREVIOUS_TAG=$(git tag -l | grep -v rc | sort -V -r | head -n 1) goreleaser --clean --snapshot ``` If all goes according to plan, you should now have a number of multiple-architecture binaries and tars inside the `./dist` folder, and snapshot Docker images should be built (check your terminal output for version).