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

5
static/README.md Normal file
View File

@@ -0,0 +1,5 @@
# static
The [static image](https://gitea.elara.ws/Elara6331/-/packages/container/static/latest) is a basic image with just enough iles to run static binaries. It's meant to be used as a base image and is useless outside of that.
This image will only run static binaries (i.e. Go binaries with `CGO_ENABLED=0`) as it doesn't include musl or glibc

23
static/apko.yaml Normal file
View File

@@ -0,0 +1,23 @@
contents:
repositories:
- https://dl-cdn.alpinelinux.org/alpine/edge/main
packages:
- alpine-baselayout-data
- alpine-release
- ca-certificates-bundle
- tzdata
accounts:
groups:
- groupname: nonroot
gid: 65532
users:
- username: nonroot
uid: 65532
gid: 65532
run-as: 65532
archs:
- amd64
- arm64
- riscv64

3
static/build.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
set -e
apko publish --sbom=false apko.yaml gitea.elra.ws/elara6331/static:latest