Skip to content

Commit 74a8bba

Browse files
committed
Initial commit
1 parent 58e4e94 commit 74a8bba

3 files changed

Lines changed: 53 additions & 1 deletion

File tree

Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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" ]

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
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+
```

workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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

0 commit comments

Comments
 (0)