[chore/bugfix] goreleaser make previous_tag cmd busybox-compatible

This commit is contained in:
tobi 2024-10-12 16:32:22 +02:00
commit 8b6e058cea
2 changed files with 3 additions and 3 deletions

View file

@ -113,7 +113,7 @@ steps:
commands: commands:
# Create a snapshot build with GoReleaser. # Create a snapshot build with GoReleaser.
- git fetch --tags - 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. # Login to Docker, push Docker image snapshots + manifests.
- /go/dockerlogin.sh - /go/dockerlogin.sh
@ -156,7 +156,7 @@ steps:
commands: commands:
- git fetch --tags - git fetch --tags
- /go/dockerlogin.sh - /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: when:
event: event:
include: include:

View file

@ -195,7 +195,7 @@ Then install Node and Yarn as described in [Stylesheet / Web dev](#stylesheet--w
Finally, to create a snapshot build, do: Finally, to create a snapshot build, do:
```bash ```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). 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).