File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ FROM golang:1.25.1 AS builder
2+
3+ ARG JSONNET_VERSION=v0.21.0
4+
5+ RUN go install github.com/google/go-jsonnet/cmd/...@${JSONNET_VERSION}
6+
7+ FROM debian:stable-slim
8+
9+ LABEL org.opencontainers.image.source=https://github.com/projectsyn/container-jsonnet
10+ LABEL org.opencontainers.image.description="Binaries for go-jsonnet"
11+ LABEL org.opencontainers.image.licenses=MIT
12+
13+ RUN apt-get update && apt-get install -y ca-certificates tzdata && rm -rf /var/lib/apt/lists/*
14+
15+ COPY --from=builder /go/bin/jsonnet* /usr/local/bin/
16+
17+ ENTRYPOINT [ "jsonnet" ]
Original file line number Diff line number Diff line change 11# container-jsonnet
2- A docker container with all binaries from https://github.com/google/go-jsonnet
2+
3+ A docker container with all binaries from https://github.com/google/go-jsonnet installed.
4+
5+ ```
6+ docker pull ghcr.io/projectsyn/jsonnet:latest
7+ ```
Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ push :
5+
6+ jobs :
7+ docker :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v5
11+
12+ - name : Login to ghcr.io
13+ uses : docker/login-action@v3
14+ with :
15+ registry : ghcr.io
16+ username : ${{ github.repository_owner }}
17+ password : ${{ github.token }}
18+
19+ - name : Set up QEMU
20+ uses : docker/setup-qemu-action@v3
21+
22+ - name : Set up Docker Buildx
23+ uses : docker/setup-buildx-action@v3
24+
25+ - name : Build and push
26+ uses : docker/build-push-action@v6
27+ with :
28+ platforms : linux/amd64,linux/arm64
29+ push : ${{ github.ref == 'refs/heads/main' }}
30+ tags : ghcr.io/${{ github.repository }}:latest
You can’t perform that action at this time.
0 commit comments