This commit is contained in:
@@ -34,6 +34,15 @@ func Build(ctx context.Context) error {
|
||||
|
||||
ctx = context.Background()
|
||||
|
||||
shuttleGit := client.
|
||||
Git("git@github.com:kjuulh/shuttle.git", dagger.GitOpts{
|
||||
KeepGitDir: true,
|
||||
}).
|
||||
Branch("shuttletask").
|
||||
Tree(dagger.GitRefTreeOpts{
|
||||
SSHAuthSocket: client.Host().UnixSocket(os.Getenv("SSH_AUTH_SOCK")),
|
||||
})
|
||||
|
||||
for _, platform := range platforms {
|
||||
platform := platform
|
||||
|
||||
@@ -42,13 +51,6 @@ func Build(ctx context.Context) error {
|
||||
|
||||
golangDir := golang.Directory("/usr/local/go")
|
||||
|
||||
shuttleGit := client.
|
||||
Git("git@github.com:kjuulh/shuttle.git").
|
||||
Branch("shuttletask").
|
||||
Tree(dagger.GitRefTreeOpts{
|
||||
SSHAuthSocket: client.Host().UnixSocket(os.Getenv("SSH_AUTH_SOCK")),
|
||||
})
|
||||
|
||||
shuttleImg := golang.
|
||||
WithDirectory("/app", shuttleGit).
|
||||
WithWorkdir("/app").
|
||||
|
Reference in New Issue
Block a user