riscv-docker/crane/build.sh
Elara Musayelyan 108e3e2949
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Add crane image
2023-08-16 12:25:36 -07:00

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