This commit is contained in:
parent
8d3fe838bb
commit
108e3e2949
3
crane/README.md
Normal file
3
crane/README.md
Normal 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
17
crane/build.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user