Skip to content

Commit 6316f0d

Browse files
committed
publish container image
1 parent bffd833 commit 6316f0d

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

.config/turbobob.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "https://raw.githubusercontent.com/function61/turbobob/refs/heads/main/pkg/bobfile/bobfile.schema.json",
23
"for_description_of_this_file_see": "https://github.com/function61/turbobob",
34
"version_major": 1,
45
"project_name": "turbobob",
@@ -28,6 +29,12 @@
2829
]
2930
}
3031
],
32+
"docker_images": [
33+
{
34+
"image": "ghcr.io/function61/turbobob",
35+
"platforms": ["linux/amd64"]
36+
}
37+
],
3138
"os_arches": {
3239
"linux-amd64": true,
3340
"linux-arm": true

.github/workflows/build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,26 @@ name: Build
22

33
on: [push]
44

5+
permissions:
6+
# write is required to create a release 🤷
7+
contents: write
8+
packages: write
9+
510
jobs:
611
build:
712
runs-on: ubuntu-latest
813
steps:
914
- uses: actions/checkout@v4
1015

16+
- uses: docker/setup-buildx-action@v3
17+
18+
- name: Login to GitHub Container Registry
19+
uses: docker/login-action@v3
20+
with:
21+
registry: ghcr.io
22+
username: ${{ github.actor }}
23+
password: ${{ secrets.GITHUB_TOKEN }}
24+
1125
- name: Build
1226
run: |
1327
set -eu

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM alpine:latest
2+
3+
ENTRYPOINT ["/usr/bin/bob"]
4+
5+
ADD rel/bob_linux-amd64 /usr/bin/bob

0 commit comments

Comments
 (0)