Poking around building OCI images on Tangled

attempt buildah workflow

Changed files
+54
.tangled
workflows
+20
.tangled/workflows/build.yml
··· 1 + when: 2 + - event: ["push", "manual"] 3 + branch: ["main"] 4 + - event: ["pull_request"] 5 + branch: ["main"] 6 + 7 + engine: "nixery" 8 + 9 + clone: 10 + skip: false 11 + depth: 1 12 + submodules: false 13 + 14 + dependencies: 15 + nixpkgs: 16 + - buildah 17 + 18 + steps: 19 + - name: Build container 20 + command: buildah build -t spindle-oci-test .
+11
Dockerfile
··· 1 + FROM golang:1.24 2 + 3 + WORKDIR /app 4 + 5 + Copy go.mod g.sum ./ 6 + RUN go mod download 7 + 8 + COPY *.go ./ 9 + RUN CGO_ENABLED=0 GOOS=linux go build -o /test 10 + 11 + CMD ["/test"]
+3
go.mod
··· 1 + module test 2 + 3 + go 1.24.7
+20
main.go
··· 1 + package main 2 + 3 + import ( 4 + "fmt" 5 + "net/http" 6 + "os" 7 + ) 8 + 9 + func main() { 10 + fmt.Println("listening on port 3000") 11 + 12 + if err := http.ListenAndServe( 13 + "localhost:3000", 14 + http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { 15 + w.Write([]byte("hello")) 16 + }), 17 + ); err != nil { 18 + os.Exit(1) 19 + } 20 + }