Automate image building and add some images

This commit is contained in:
2023-08-13 18:42:38 -07:00
parent 6e63b4b4ab
commit 7add07006b
18 changed files with 196 additions and 27 deletions

View File

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