File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99permissions :
1010 contents : read
11+ packages : write
1112
1213jobs :
1314 test :
2728 - name : Typecheck frontend
2829 run : cd frontend && bunx tsc -b --noEmit
2930
31+ - name : Build frontend
32+ run : |
33+ cd frontend && bun run build
34+ cp -r dist ../internal/frontend/dist
35+
3036 - name : Go vet
3137 run : go vet ./...
3238
3339 - name : Go test
3440 run : go test ./...
41+
42+ docker :
43+ if : github.ref == 'refs/heads/main' && github.event_name == 'push'
44+ needs : test
45+ runs-on : ubuntu-latest
46+ steps :
47+ - uses : actions/checkout@v4
48+
49+ - uses : docker/setup-buildx-action@v3
50+
51+ - uses : docker/login-action@v3
52+ with :
53+ registry : ghcr.io
54+ username : ${{ github.actor }}
55+ password : ${{ secrets.GITHUB_TOKEN }}
56+
57+ - uses : docker/metadata-action@v5
58+ id : meta
59+ with :
60+ images : ghcr.io/${{ github.repository }}
61+ tags : |
62+ type=raw,value=main
63+ type=sha,prefix=sha-
64+
65+ - uses : docker/build-push-action@v6
66+ with :
67+ context : .
68+ push : true
69+ platforms : linux/amd64,linux/arm64
70+ tags : ${{ steps.meta.outputs.tags }}
71+ labels : ${{ steps.meta.outputs.labels }}
72+ cache-from : type=gha
73+ cache-to : type=gha,mode=max
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments