-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Daniel Mikusa <dan@mikusa.com>
- Loading branch information
Showing
9 changed files
with
47 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.39.0 | ||
1.40.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
GOOS="linux" go build -ldflags='-s -w' -o bin/helper github.com/paketo-buildpacks/aternity/v4/cmd/helper | ||
GOOS="linux" go build -ldflags='-s -w' -o bin/main github.com/paketo-buildpacks/aternity/v4/cmd/main | ||
GOMOD=$(head -1 go.mod | awk '{print $2}') | ||
GOOS="linux" GOARCH="amd64" go build -ldflags='-s -w' -o "linux/amd64/bin/helper" "$GOMOD/cmd/helper" | ||
GOOS="linux" GOARCH="arm64" go build -ldflags='-s -w' -o "linux/arm64/bin/helper" "$GOMOD/cmd/helper" | ||
GOOS="linux" GOARCH="amd64" go build -ldflags='-s -w' -o linux/amd64/bin/main "$GOMOD/cmd/main" | ||
GOOS="linux" GOARCH="arm64" go build -ldflags='-s -w' -o linux/arm64/bin/main "$GOMOD/cmd/main" | ||
|
||
if [ "${STRIP:-false}" != "false" ]; then | ||
strip bin/helper bin/main | ||
strip linux/amd64/bin/helper linux/arm64/bin/helper | ||
strip linux/amd64/bin/main linux/arm64/bin/main | ||
fi | ||
|
||
if [ "${COMPRESS:-false}" != "false" ]; then | ||
upx -q -9 bin/helper bin/main | ||
if [ "${COMPRESS:-none}" != "none" ]; then | ||
$COMPRESS linux/amd64/bin/helper linux/arm64/bin/helper | ||
$COMPRESS linux/amd64/bin/main linux/arm64/bin/main | ||
fi | ||
|
||
ln -fs main bin/build | ||
ln -fs main bin/detect | ||
ln -fs main linux/amd64/bin/build | ||
ln -fs main linux/arm64/bin/build | ||
ln -fs main linux/amd64/bin/detect | ||
ln -fs main linux/arm64/bin/detect |