mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 16:35:07 +03:00
+fly.io
This commit is contained in:
parent
676850a070
commit
42435e8926
1 changed files with 33 additions and 0 deletions
33
projects/fly.io/package.yml
Normal file
33
projects/fly.io/package.yml
Normal file
|
@ -0,0 +1,33 @@
|
|||
distributable:
|
||||
url: https://github.com/superfly/flyctl/archive/refs/tags/v{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: superfly/flyctl/releases/tags
|
||||
strip: /^v/
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: ^1.20
|
||||
env:
|
||||
CGO_ENABLED: 0
|
||||
LDFLAGS:
|
||||
- -s
|
||||
- -w
|
||||
- -X github.com/superfly/flyctl/internal/buildinfo.environment=production
|
||||
- -X github.com/superfly/flyctl/internal/buildinfo.buildDate=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
||||
- -X github.com/superfly/flyctl/internal/buildinfo.version={{ version }}
|
||||
- -X github.com/superfly/flyctl/internal/buildinfo.commit=tea
|
||||
script: |
|
||||
go build -v -ldflags="$LDFLAGS" -o "{{ prefix }}"/bin/flyctl .
|
||||
cd "{{ prefix }}"/bin
|
||||
ln -s flyctl fly
|
||||
|
||||
provides:
|
||||
- bin/fly
|
||||
- bin/flyctl
|
||||
|
||||
test: |
|
||||
fly version | grep {{version}}
|
||||
flyctl version | grep {{version}}
|
||||
echo $(flyctl status 2>&1 || true) | grep " No access token available"
|
Loading…
Reference in a new issue