2022-04-07 06:48:54 -05:00
|
|
|
build:
|
|
|
|
from:
|
|
|
|
type: docker
|
2023-05-01 18:25:52 -05:00
|
|
|
url: docker://ghcr.io/project-zot/golang:1.20
|
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}}":
|
2022-11-12 04:08:45 -05:00
|
|
|
os: ${{OS}}
|
|
|
|
arch: ${{ARCH}}
|
2022-04-07 06:48:54 -05:00
|
|
|
from:
|
|
|
|
type: docker
|
2022-11-10 15:09:39 -05:00
|
|
|
url: docker://gcr.io/distroless/base: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}}
|