This commit is contained in:
parent
fef5b172b1
commit
b739850b66
@ -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:1680893274918
|
image: docker.io/kasperhermansen/shuttle-drone:1680893418457
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run
|
path: /var/run
|
||||||
|
@ -49,8 +49,6 @@ func Build(ctx context.Context) error {
|
|||||||
egrp.Go(func() error {
|
egrp.Go(func() error {
|
||||||
golang := client.Container().From("golang:1.20.3")
|
golang := client.Container().From("golang:1.20.3")
|
||||||
|
|
||||||
golangDir := golang.Directory("/usr/local/go")
|
|
||||||
|
|
||||||
shuttleImg := golang.
|
shuttleImg := golang.
|
||||||
WithDirectory("/app", shuttleGit).
|
WithDirectory("/app", shuttleGit).
|
||||||
WithWorkdir("/app").
|
WithWorkdir("/app").
|
||||||
@ -79,9 +77,8 @@ func Build(ctx context.Context) error {
|
|||||||
Container(dagger.ContainerOpts{
|
Container(dagger.ContainerOpts{
|
||||||
Platform: platform,
|
Platform: platform,
|
||||||
}).
|
}).
|
||||||
From("debian").
|
From("golang:1.20.3").
|
||||||
WithWorkdir("/app").
|
WithWorkdir("/app").
|
||||||
WithDirectory("/usr/local/bin/go", golangDir).
|
|
||||||
WithFile("/usr/local/bin/shuttle", shuttle).
|
WithFile("/usr/local/bin/shuttle", shuttle).
|
||||||
WithExec([]string{"shuttle", "version"})
|
WithExec([]string{"shuttle", "version"})
|
||||||
if _, err := image.ExitCode(ctx); err != nil {
|
if _, err := image.ExitCode(ctx); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user