riscv-docker/go-import-redirector/build.sh

18 lines
410 B
Bash
Raw Normal View History

2023-08-09 06:10:32 +00:00
#!/bin/bash
set -e
# Clone go-import-redirector and enter its directory
git clone https://github.com/rsc/go-import-redirector
2023-08-09 06:10:32 +00:00
pushd go-import-redirector
# Build and publish the image
KO_DOCKER_REPO=gitea.elara.ws/elara6331 \
KO_DEFAULTBASEIMAGE=gitea.elara.ws/elara6331/static \
ko build -B \
2023-08-09 06:10:32 +00:00
--platform=linux/amd64,linux/arm64,linux/riscv64 \
--sbom=none
# Leave the go-import-redirector directory
2023-08-09 06:10:32 +00:00
popd