Add crane image
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Elara 2023-08-16 12:25:36 -07:00
parent 8d3fe838bb
commit 108e3e2949
2 changed files with 20 additions and 0 deletions

3
crane/README.md Normal file
View File

@ -0,0 +1,3 @@
# crane
The [crane](https://gitea.elara.ws/Elara6331/-/packages/container/crane/latest) image contains Google's [crane](https://github.com/google/go-containerregistry/tree/main/cmd/crane) project.

17
crane/build.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
set -e
# Clone go-containerregistry and enter crane's directory
git clone --depth=1 https://github.com/google/go-containerregistry.git
pushd go-containerregistry/cmd/crane
# Build and publish the image
KO_DOCKER_REPO=gitea.elara.ws/elara6331 \
KO_DEFAULTBASEIMAGE=gitea.elara.ws/elara6331/busybox \
ko build -B \
--platform=linux/amd64,linux/arm64,linux/riscv64 \
--sbom=none
# Leave crane's directory
popd