2022-04-07 06:48:54 -05:00
|
|
|
build:
|
|
|
|
from:
|
|
|
|
type: docker
|
2024-03-20 13:53:11 -05:00
|
|
|
url: docker://ghcr.io/project-zot/golang:1.22
|
2022-04-07 06:48:54 -05:00
|
|
|
binds:
|
2022-11-11 00:55:07 -05:00
|
|
|
- ../. -> /zotcopy
|
2022-04-07 06:48:54 -05:00
|
|
|
run: |
|
|
|
|
export GO111MODULE=on
|
|
|
|
export GOPATH='/go'
|
|
|
|
export HOME='/root'
|
|
|
|
export PATH='/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
|
|
|
|
mkdir -p /go/src/github.com/project-zot
|
|
|
|
cd /go/src/github.com/project-zot
|
|
|
|
git clone /zotcopy zot
|
|
|
|
cd /go/src/github.com/project-zot/zot
|
|
|
|
make COMMIT=${{COMMIT}} OS=${{OS}} ARCH=${{ARCH}} clean bench
|
2022-05-25 10:53:02 -05:00
|
|
|
|
2022-11-11 00:55:07 -05:00
|
|
|
mkdir -p /zotcopy/.build/${{REPO_NAME}}/binary
|
|
|
|
cp /go/src/github.com/project-zot/zot/bin/zb-${{OS}}-${{ARCH}} /zotcopy/.build/${{REPO_NAME}}/binary
|
2022-04-07 06:48:54 -05:00
|
|
|
build_only: true
|
|
|
|
|
|
|
|
"${{REPO_NAME:zb}}":
|
2024-04-01 10:40:09 -05:00
|
|
|
annotations:
|
|
|
|
org.opencontainers.image.description: "a performance benchmark tool for OCI conformant registries"
|
2022-11-12 04:08:45 -05:00
|
|
|
os: ${{OS}}
|
|
|
|
arch: ${{ARCH}}
|
2022-04-07 06:48:54 -05:00
|
|
|
from:
|
|
|
|
type: docker
|
2023-11-21 07:54:07 -05:00
|
|
|
url: docker://gcr.io/distroless/base-debian12:latest-${{ARCH}}
|
2022-05-25 10:53:02 -05:00
|
|
|
overlay_dirs:
|
2022-11-11 00:55:07 -05:00
|
|
|
- source: ../.build/${{REPO_NAME}}/binary
|
2022-05-25 10:53:02 -05:00
|
|
|
dest: /usr/local/bin
|
2022-04-07 06:48:54 -05:00
|
|
|
entrypoint:
|
2022-05-25 10:53:02 -05:00
|
|
|
- /usr/local/bin/zb-${{OS}}-${{ARCH}}
|