feat: update drone
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kasper Juul Hermansen 2023-04-07 20:51:09 +02:00
parent fef5b172b1
commit b739850b66
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
2 changed files with 2 additions and 5 deletions

View File

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

View File

@ -49,8 +49,6 @@ func Build(ctx context.Context) error {
egrp.Go(func() error {
golang := client.Container().From("golang:1.20.3")
golangDir := golang.Directory("/usr/local/go")
shuttleImg := golang.
WithDirectory("/app", shuttleGit).
WithWorkdir("/app").
@ -79,9 +77,8 @@ func Build(ctx context.Context) error {
Container(dagger.ContainerOpts{
Platform: platform,
}).
From("debian").
From("golang:1.20.3").
WithWorkdir("/app").
WithDirectory("/usr/local/bin/go", golangDir).
WithFile("/usr/local/bin/shuttle", shuttle).
WithExec([]string{"shuttle", "version"})
if _, err := image.ExitCode(ctx); err != nil {