feat: update drone
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Kasper Juul Hermansen 2023-04-07 20:33:35 +02:00
parent 9cea95c6a3
commit b532ee234c
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
3 changed files with 11 additions and 9 deletions

View File

@ -3,7 +3,7 @@ kind: pipeline
name: "shuttle-drone-templates" name: "shuttle-drone-templates"
steps: steps:
- name: "build" - name: "build"
image: docker.io/kasperhermansen/shuttle-drone:1680891892542 image: docker.io/kasperhermansen/shuttle-drone:1680892391631
volumes: volumes:
- name: dockersock - name: dockersock
path: /var/run path: /var/run

View File

@ -34,6 +34,15 @@ func Build(ctx context.Context) error {
ctx = context.Background() 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 { for _, platform := range platforms {
platform := platform platform := platform
@ -42,13 +51,6 @@ func Build(ctx context.Context) error {
golangDir := golang.Directory("/usr/local/go") 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. shuttleImg := golang.
WithDirectory("/app", shuttleGit). WithDirectory("/app", shuttleGit).
WithWorkdir("/app"). WithWorkdir("/app").

View File

@ -2,7 +2,7 @@ module shuttletask
go 1.20 go 1.20
replace github.com/lunarway/shuttle => github.com/kjuulh/shuttle v0.0.0-20230407181904-c33b3e1dae47 replace github.com/lunarway/shuttle => github.com/kjuulh/shuttle v0.0.0-20230407180512-4877329375cb
require ( require (
dagger.io/dagger v0.6.0 dagger.io/dagger v0.6.0