Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Commit a140bbc

Browse files
authored
Merge pull request #44 from bytes-zone/fix-double-name
releaser optimizations
2 parents 315e5e5 + b6bb29a commit a140bbc

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

.dagger/main.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func (m *Beeps) Postgres() *dagger.Container {
3333
dagger.PostgresOpts{
3434
DbPort: 5432,
3535
DbName: "beeps",
36-
Cache: true,
36+
Cache: false,
3737
},
3838
).Database()
3939
}
@@ -111,7 +111,7 @@ func (m *Beeps) All(
111111
nice := NiceOutput{}
112112

113113
eg.Go(func() error {
114-
out, err := m.Build(ctx, source, false).Stderr(ctx)
114+
out, err := m.Build(ctx, source, false, "").Stderr(ctx)
115115
nice.build = out
116116
return err
117117
})
@@ -172,12 +172,18 @@ func (m *Beeps) Build(
172172
source *dagger.Directory,
173173
// +optional
174174
release bool,
175+
// +optional
176+
binary string,
175177
) *dagger.Container {
176178
command := []string{"cargo", "build"}
177179
if release {
178180
command = append(command, "--release")
179181
}
180182

183+
if binary != "" {
184+
command = append(command, "--bin", binary)
185+
}
186+
181187
return m.rustBase("build").
182188
With(userSource(source)).
183189
WithExec(command)
@@ -195,7 +201,7 @@ func (m *Beeps) ServerContainerImage(
195201
From("bitnami/minideb:bookworm").
196202
WithFile(
197203
"/bin/beeps-server",
198-
m.Build(ctx, source, true).
204+
m.Build(ctx, source, true, "beeps-server").
199205
WithExec([]string{"cp", "/target/release/beeps-server", "/beeps-server"}).
200206
File("/beeps-server"),
201207
).

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
token: ${{ secrets.GITHUB_TOKEN }}
2424

2525
upload-docker:
26-
name: dagger
2726
runs-on: dagger
2827
steps:
2928
- name: Checkout
@@ -39,7 +38,7 @@ jobs:
3938
with:
4039
version: "latest"
4140
verb: call
42-
args: server-container-image publish --address ghcr.io/${{ github.repository }}/beeps:${{ github.ref_name }}
41+
args: server-container-image publish --address ghcr.io/${{ github.repository }}:${{ github.ref_name }}
4342

4443
upload-assets:
4544
needs: create-release

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## 0.4.1 (2025-01-04)
44

5-
Version updates for all packages. The server is now available as a container image now, too! You can find it at `ghcr.io/bytes-zone/beeps:0.4.1`.
5+
Version updates for all packages. The server is now available as a container image now, too! You can find it at `ghcr.io/bytes-zone/beeps:v0.4.1`.
66

77
## 0.4.0 (2024-12-29)
88

0 commit comments

Comments
 (0)