Skip to content

Commit

Permalink
+earthly.dev/earthly
Browse files Browse the repository at this point in the history
  • Loading branch information
tannevaled authored and jhheider committed Sep 25, 2024
1 parent ec95e3e commit a21e28f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions projects/earthly.dev/earthly/package.yml
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}}

0 comments on commit a21e28f

Please sign in to comment.