Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: just exit if not push
Browse files Browse the repository at this point in the history
markphelps committed Dec 22, 2023
1 parent fe17927 commit 89518ac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build/main.go
Original file line number Diff line number Diff line change
@@ -158,14 +158,13 @@ func rubyBuild(ctx context.Context, client *dagger.Client, hostDirectory *dagger
var err error

if !push {
_, err = container.File("/app/pkg/flipt_client-0.1.0.gem").
Export(ctx, "tmp/flipt_client-0.1.0.gem")
_, err = container.Sync(ctx)
return err
}

_, err = container.
WithSecretVariable("GEM_HOST_API_KEY", gemHostAPIKeySecret).
WithExec([]string{"gem", "push", "--host", gemHost, "/app/pkg/flipt_client-0.1.0.gem"}).
WithExec([]string{"gem", "push", "--host", gemHost, "/app/pkg/flipt_client-*.gem"}).
Sync(ctx)

return err

0 comments on commit 89518ac

Please sign in to comment.