Skip to content

updated #711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ jobs:
JSON='${{ steps.meta.outputs.json }}'
MODIFIED_JSON=$(echo "$JSON" | jq '
.tags |= map(
sub(":v"; ":") |
select(test(":latest") | not)
sub(":v"; ":") # Strip the 'v'
| select(test(":latest") | not)
| sub(":(.+)"; ":\(.captures[0])-slim")
) |
if any(.tags[]; test("beta")) then
.tags += [
Expand Down
25 changes: 22 additions & 3 deletions backend/.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ project_name: filebrowser
version: 2

builds:
# Build configuration for linux amd64/arm64
- id: linux
# Build configuration for linux amd64
- id: linux-amd64
env:
- CGO_ENABLED=1
tags:
Expand All @@ -16,7 +16,25 @@ builds:
goos:
- linux
goarch:
- amd64
- arm64
hooks:
post:
- upx {{ .Path }} # Compress the binary with UPX

# Build configuration for linux amd64
- id: linux-arm64
env:
- CGO_ENABLED=1
- CC=aarch64-linux-gnu-gcc
tags:
- mupdf
ldflags: &ldflags
- -s -w -X github.com/gtsteffaniak/filebrowser/backend/common/version.Version={{ .Version }} -X github.com/gtsteffaniak/filebrowser/backend/common/version.CommitSHA={{ .ShortCommit }}
main: main.go
binary: filebrowser
goos:
- linux
goarch:
- arm64
hooks:
post:
Expand All @@ -43,6 +61,7 @@ builds:
- id: windows
env:
- CGO_ENABLED=1
- CC=gcc-mingw-w64
tags:
- mupdf
ldflags: *ldflags
Expand Down
Loading