mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-30 11:02:16 +00:00
chore: release tarballs (#10956)
# Which Problems Are Solved This PR makes sure that the tarballs containing the API binary and the standalone login are separately downloadable from the release pages again. # How the Problems Are Solved Because the `Pack` workflow uploads a single GitHub artifact containing all tarballs since #10571, we download this artifact so that it correctly unpacks into the correct folder structure configured in `.releaserc.js` The changes are tested [with this action run](https://github.com/eliobischof/zitadel/actions/runs/18745783976), which [created this release](https://github.com/eliobischof/zitadel/releases/tag/v1.0.0-release-archives.5). # Additional Changes - The term `standalone` is removed from the login tarball, as it should be clear that it is a standalone build. - The go builds and the login archiving are less verbose - The pipelines go versions are pinned to *v1.25*, a minor above the minimally required go version *v1.24.0* described in the go.mod file. This makes sure that we build using newer patches for security and performance. # Additional Context - The archives weren't published anymore since #10571 - Closes #10896 --------- Co-authored-by: Silvan <[email protected]>
This commit is contained in:
@@ -61,7 +61,7 @@
|
||||
"generate",
|
||||
"build-console"
|
||||
],
|
||||
"command": "bash -c 'CGO_ENABLED=0 go build -o .artifacts/bin/$(go env GOOS)/$(go env GOARCH)/zitadel.local -v -ldflags=\"-s -w\"'",
|
||||
"command": "bash -c 'CGO_ENABLED=0 go build -o .artifacts/bin/$(go env GOOS)/$(go env GOARCH)/zitadel.local -ldflags=\"-s -w\"'",
|
||||
"inputs": [
|
||||
{ "runtime": "go env GOOS" },
|
||||
{ "runtime": "go env GOARCH" },
|
||||
@@ -347,10 +347,11 @@
|
||||
"description": "Cross-compiles the binary and packages it for the platform defined by GOOS and GOARCH environment variables. The version is taken from the ZITADEL_VERSION environment variable.",
|
||||
"executor": "nx:run-commands",
|
||||
"options": {
|
||||
"parallel": false,
|
||||
"commands": [
|
||||
"mkdir -p .artifacts/pack .artifacts/bin/$GOOS/$GOARCH",
|
||||
"bash -c 'EXT=\"\"; if [ \"$GOOS\" = \"windows\" ]; then EXT=\".exe\"; fi; echo \"Building for $GOOS-$GOARCH...\"; CGO_ENABLED=0 go build -o .artifacts/bin/$GOOS/$GOARCH/zitadel$EXT -v -ldflags=\"-s -w -X github.com/zitadel/zitadel/cmd/build.commit=$(git rev-parse --short HEAD) -X github.com/zitadel/zitadel/cmd/build.date=$(date \"+%Y-%m-%dT%T%z\" | sed -E \"s/.([0-9]{2})([0-9]{2})$/-\\1:\\2/\") -X github.com/zitadel/zitadel/cmd/build.version=${ZITADEL_VERSION}\"'",
|
||||
"bash -c 'EXT=\"\"; if [ \"$GOOS\" = \"windows\" ]; then EXT=\".exe\"; fi; FOLDER=\".artifacts/pack/zitadel-$GOOS-$GOARCH\"; mkdir -p \"$FOLDER\"; cp \".artifacts/bin/$GOOS/$GOARCH/zitadel$EXT\" \"$FOLDER/\"; cp LICENSE \"$FOLDER/\"; cp README.md \"$FOLDER/\"; tar -czvf \"$FOLDER.tar.gz\" \"$FOLDER\"; rm -rf \"$FOLDER\"'"
|
||||
"bash -c 'EXT=\"\"; if [ \"$GOOS\" = \"windows\" ]; then EXT=\".exe\"; fi; echo \"Building for $GOOS-$GOARCH...\"; CGO_ENABLED=0 go build -o .artifacts/bin/$GOOS/$GOARCH/zitadel$EXT -ldflags=\"-s -w -X github.com/zitadel/zitadel/cmd/build.commit=$(git rev-parse --short HEAD) -X github.com/zitadel/zitadel/cmd/build.date=$(date \"+%Y-%m-%dT%T%z\" | sed -E \"s/.([0-9]{2})([0-9]{2})$/-\\1:\\2/\") -X github.com/zitadel/zitadel/cmd/build.version=${ZITADEL_VERSION}\"'",
|
||||
"bash -c 'EXT=\"\"; if [ \"$GOOS\" = \"windows\" ]; then EXT=\".exe\"; fi; FOLDER=\"zitadel-$GOOS-$GOARCH\"; mkdir -p \".artifacts/pack/$FOLDER\"; cp README.md LICENSE \".artifacts/bin/$GOOS/$GOARCH/zitadel$EXT\" \".artifacts/pack/$FOLDER/\"; tar -czvf \".artifacts/pack/$FOLDER.tar.gz\" -C .artifacts/pack \"$FOLDER\"; rm -rf \".artifacts/pack/$FOLDER\"'"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user