-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec95e3e
commit a21e28f
Showing
1 changed file
with
30 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
distributable: | ||
url: https://github.com/earthly/earthly/archive/refs/tags/{{version.tag}}.tar.gz | ||
strip-components: 1 | ||
|
||
display-name: earthly | ||
|
||
versions: | ||
github: earthly/earthly | ||
|
||
build: | ||
dependencies: | ||
go.dev: '*' | ||
env: | ||
CGO_ENABLED: 0 | ||
GO_LDFLAGS: | ||
- -s | ||
- -w | ||
- -X main.Version="{{ version }}" | ||
- -X main.GitSha="$( git rev-parse HEAD )" | ||
- -X main.BuiltBy="pkgx" | ||
- -X main.DefaultInstallationName="earthly" | ||
linux: | ||
GO_LDFLAGS: | ||
- -buildmode=pie | ||
script: go build -v -ldflags="${GO_LDFLAGS}" -o "{{ prefix }}"/bin/earthly ./cmd/earthly | ||
|
||
provides: | ||
- bin/earthly | ||
|
||
test: test "$(earthly --version| cut -d' ' -f 3)" = {{version}} |