Skip to content

Commit 388a883

Browse files
committed
fix(cli): release behavior
1 parent 8815399 commit 388a883

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: dagger/dagger-for-github@e47aba410ef9bb9ed81a4d2a97df31061e5e842e # 8.0.0
1616
with:
1717
verb: call
18-
args: "release --tag=$TAG --registry=ghcr.io --image-name=$IMAGE_NAME --username=$REGISTRY_USERNAME --password=env://REGISTRY_PASSWORD"
18+
args: "release-server --tag=$TAG --registry=ghcr.io --image-name=$IMAGE_NAME --username=$REGISTRY_USERNAME --password=env://REGISTRY_PASSWORD"
1919
env:
2020
IMAGE_NAME: ${{ github.repository }}
2121
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
@@ -24,7 +24,7 @@ jobs:
2424
- uses: dagger/dagger-for-github@e47aba410ef9bb9ed81a4d2a97df31061e5e842e # 8.0.0
2525
with:
2626
verb: call
27-
args: "build-cli --tag=$TAG --token=env://REGISTRY_PASSWORD"
27+
args: "release-cli --tag=$TAG --token=env://TOKEN"
2828
env:
2929
TAG: ${{ github.event.release.tag_name }}
3030
TOKEN: ${{ secrets.GITHUB_TOKEN }}

dagger/cd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (m *Kv2) BuildServerContainer(
3939
WithExposedPort(80) // used for development mode ONLY
4040
}
4141

42-
func (m *Kv2) BuildCli(
42+
func (m *Kv2) ReleaseCli(
4343
ctx context.Context,
4444
tag string,
4545
// +optional
@@ -54,6 +54,6 @@ func (m *Kv2) BuildCli(
5454
WithEnvVariable("GOCACHE", "/go/build-cache").
5555
WithDirectory("/go/src/github.com/hugginsio/kv2/", source).
5656
WithWorkdir("/go/src/github.com/hugginsio/kv2/").
57-
WithExec([]string{"goreleaser", "build"}).
57+
WithExec([]string{"goreleaser", "release"}).
5858
Stdout(ctx)
5959
}

dagger/forge.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func (m *Kv2) PullRequest(
2626
return strings.Join([]string{lint, test}, "\n"), nil
2727
}
2828

29-
func (m *Kv2) Release(
29+
func (m *Kv2) ReleaseServer(
3030
ctx context.Context,
3131
tag string,
3232
registry string,

0 commit comments

Comments
 (0)