Skip to content

Commit

Permalink
+werf.io (#5352)
Browse files Browse the repository at this point in the history
* new file:   projects/werf.io/package.yml

* linux > btrfs

* binutils

* gcc for gold

* git config repo in test

* deps

* oops... linux only

---------

Co-authored-by: Jacob Heider <[email protected]>
  • Loading branch information
and-ri and jhheider authored Feb 25, 2024
1 parent f57bf0d commit c2a170a
Showing 1 changed file with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions projects/werf.io/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
distributable:
url: https://github.com/werf/werf/archive/v{{version}}.tar.gz
strip-components: 1

versions:
github: werf/werf

dependencies:
linux:
github.com/kdave/btrfs-progs: ^6.7
sourceware.org/dm: ^2.3

build:
dependencies:
go.dev: ^1.21
linux:
gnu.org/gcc: '*'
gnu.org/binutils: '*' # some go packages demand ld.gold
script:
go build $ARGS -ldflags="$LD_FLAGS" -tags="$TAGS" ./cmd/werf
env:
TAGS:
- dfrunsecurity
- dfrunnetwork
- dfrunmount
- dfssh
- containers_image_openpgp
LD_FLAGS:
- -s
- -w
- -X github.com/werf/werf/pkg/werf.Version={{version}}
linux:
LD_FLAGS:
- -linkmode external
- -extldflags=-static
- -buildmode=pie
TAGS:
- osusergo
- exclude_graphdriver_devicemapper
- netgo
- no_devmapper
- static_build
ARGS:
- -v
- -trimpath
- -o={{prefix}}/bin/werf

provides:
- bin/werf

test:
dependencies:
git-scm.org: '*'
script:
- werf version | grep {{version}}
- run: cp $FIXTURE werf.yaml
fixture: |
configVersion: 1
project: quickstart-application
---
image: vote
dockerfile: Dockerfile
context: vote
---
image: result
dockerfile: Dockerfile
context: result
---
image: worker
dockerfile: Dockerfile
context: worker
- git init
- git config user.email "[email protected]"
- git config user.name "pkgxbot"
- git add werf.yaml
- git commit -m "Initial commit"
- werf config graph | grep result

0 comments on commit c2a170a

Please sign in to comment.