Elara Musayelyan
108e3e2949
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
18 lines
425 B
Bash
Executable File
18 lines
425 B
Bash
Executable File
#!/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
|